objekt hihi
[sdlbotor.git] / Makefile
blob02c220779c9f54871c7428c999cc5fb45c980bc0
1 VERSION = 3.81
2 CC = /usr/bin/g++
3 CFLAGS = $(shell sdl-config --cflags) -Wall -g
4 LDFLAGS = $(shell sdl-config --libs) -lSDL_gfx -lSDL_image -llua5.1
6 OBJ = globalfunc.o SDLVideoOut.o Game.o main.o Tileset.o Map.o MapObject.o LivingMapObject.o drawable.o DTile.o DAnimation.o Player.o Robot.o Object.o Inventory.o luafuncs.o
7 # luascript.cpp
8 #SRC = globalfunc.cpp SDLVideoOut.cpp Game.cpp main.cpp Tileset.cpp Map.cpp MapObject.cpp LivingMapObject.cpp Player.cpp Robot.cpp
10 TARGET = botor
12 all: $(TARGET)
14 $(TARGET): $(OBJ)
15 $(CC) -g -o $(TARGET) $(OBJ) $(LDFLAGS)
17 %.o: %.cpp
18 $(CC) -c $(CFLAGS) $<
21 clean:
22 -rm $(TARGET) *~ *.o