lib3ddevil1/Makefile
2018-04-23 18:57:57 -07:00

39 lines
695 B
Makefile

CC=gcc
CFLAGS=-I"include" -Wall -fPIC #-g
LDFLAGS=-shared
TARGET=lib3ddevil1.so
PEX=demo-extractpld
TEX=demo-extracttexture
MEX=demo-extractmesh
OBJ=devil1pld.o devil1tex.o devil1geo.o
all: $(TARGET) demos
$(TARGET): $(OBJ)
$(LINK.cc) $(LDFLAGS) $^ -o $@
demos: pld texture mesh
pld: $(OBJ)
$(CC) $^ demo/extractpld.c $(CFLAGS) -o $(PEX)
texture: $(OBJ)
$(CC) $^ demo/extracttexture.c $(CFLAGS) -o $(TEX)
mesh: $(OBJ)
$(CC) $^ demo/extractmesh.c $(CFLAGS) -o $(MEX)
devil1pld.o: src/devil1pld.c
$(CC) -c $^ $(CFLAGS)
devil1tex.o: src/devil1tex.c
$(CC) -c $^ $(CFLAGS)
devil1geo.o: src/devil1geo.c
$(CC) -c $^ $(CFLAGS)
clean:
rm *.o *.gch $(TARGET) $(PEX) $(TEX) $(MEX)