Remove automake, build using custom Makefile
This commit is contained in:
parent
0441ff72c3
commit
083b88896e
24 changed files with 82 additions and 16105 deletions
36
src/Makefile
Normal file
36
src/Makefile
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
CC = g++
|
||||
CFLAGS = -O2 -D_REENTRANT -I/usr/include/SDL2 -Itinyxml -DTIXML_USE_STL \
|
||||
-DDATADIR="\"$(DATADIR)\""
|
||||
LDFLAGS = -lpng -lalut -lopenal -lGL -lGLU -lSDL2
|
||||
|
||||
SOURCES = background.cpp \
|
||||
craft.cpp \
|
||||
font.cpp \
|
||||
game.cpp \
|
||||
level.cpp \
|
||||
m3dmaterial.cpp \
|
||||
m3dmesh.cpp \
|
||||
m3dtexture.cpp \
|
||||
main.cpp \
|
||||
menu.cpp \
|
||||
player.cpp \
|
||||
ring.cpp \
|
||||
terrain.cpp \
|
||||
vector2.cpp
|
||||
|
||||
OBJECTS = $(subst .cpp,.o,$(SOURCES))
|
||||
|
||||
all: $(OBJECTS) tinyxml
|
||||
$(CC) $(LDFLAGS) -o antigrav $(OBJECTS) tinyxml/libtinyxml.a
|
||||
|
||||
$(OBJECTS): %.o:
|
||||
$(CC) -c $(CFLAGS) $(subst .o,.cpp,$@) -o $@
|
||||
|
||||
tinyxml:
|
||||
$(MAKE) -C tinyxml
|
||||
|
||||
clean:
|
||||
rm -f *.o
|
||||
$(MAKE) -C tinyxml clean
|
||||
|
||||
.PHONY: all clean tinyxml
|
||||
Loading…
Add table
Add a link
Reference in a new issue