LOC2 -L home 416 as6 asg6 SDL SDL_ttf-2 inst lib SDL_LIB sdl-config --

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
LOC2=-L/home/416/as6/asg6/SDL/SDL_ttf-2.0.9/inst/lib
SDL_LIB=`sdl-config --libs` $(LOC2) -lSDL_mixer -SDL_ttf
LOC1=-I/home/416/asg6/asg6/SDL/SDL_ttf-2.0.9/inst/include
CFLAGS=`sdl-config --cflags` $(LOC1) -W -Wall -ggdb -O2
CCC=g++
OBJECTS = background.o bullet.o bullets.o enemy.o explosion.o \
exSprite.o introManager.o manager1.o player.o sound.o \
sprite.o texture.o
run: main.o $(OBJECTS)
$(CCC) $(CFLAGS) -o run $(OBJECTS) $(SDL_LIB)
main.o: main.cpp manager1.h introManager.h single.h
$(CCC) $(CFLAGS) -c main.cpp