2018-04-21 15:44:09 -07:00
|
|
|
CC=gcc
|
|
|
|
CFLAGS=-I"include" -Wall -fPIC #-g
|
|
|
|
LDFLAGS=-shared
|
|
|
|
TARGET=lib3ddevil1.so
|
2018-04-17 23:47:08 -07:00
|
|
|
PEX=demo-extractpld
|
|
|
|
TEX=demo-extracttexture
|
|
|
|
MEX=demo-extractmesh
|
2018-04-21 15:44:09 -07:00
|
|
|
OBJ=devil1pld.o devil1tex.o devil1geo.o
|
2018-04-17 23:47:08 -07:00
|
|
|
|
2018-04-21 15:44:09 -07:00
|
|
|
all: $(TARGET) demos
|
|
|
|
|
|
|
|
$(TARGET): $(OBJ)
|
|
|
|
$(LINK.cc) $(LDFLAGS) $^ -o $@
|
2018-04-01 23:45:30 -07:00
|
|
|
|
2018-04-17 23:47:08 -07:00
|
|
|
|
2018-04-21 15:44:09 -07:00
|
|
|
demos: pld texture mesh
|
|
|
|
|
|
|
|
pld: $(OBJ)
|
2018-04-18 00:23:59 -07:00
|
|
|
$(CC) $^ demo/extractpld.c $(CFLAGS) -o $(PEX)
|
2018-04-17 23:47:08 -07:00
|
|
|
|
2018-04-21 15:44:09 -07:00
|
|
|
texture: $(OBJ)
|
2018-04-18 00:23:59 -07:00
|
|
|
$(CC) $^ demo/extracttexture.c $(CFLAGS) -o $(TEX)
|
2018-04-01 23:45:30 -07:00
|
|
|
|
2018-04-21 15:44:09 -07:00
|
|
|
mesh: $(OBJ)
|
2018-04-18 00:23:59 -07:00
|
|
|
$(CC) $^ demo/extractmesh.c $(CFLAGS) -o $(MEX)
|
2018-04-01 23:45:30 -07:00
|
|
|
|
2018-04-21 15:44:09 -07:00
|
|
|
|
2018-04-01 23:45:30 -07:00
|
|
|
devil1pld.o: src/devil1pld.c
|
|
|
|
$(CC) -c $^ $(CFLAGS)
|
|
|
|
|
2018-04-04 01:36:28 -07:00
|
|
|
devil1tex.o: src/devil1tex.c
|
|
|
|
$(CC) -c $^ $(CFLAGS)
|
|
|
|
|
2018-04-07 03:24:07 -07:00
|
|
|
devil1geo.o: src/devil1geo.c
|
|
|
|
$(CC) -c $^ $(CFLAGS)
|
|
|
|
|
2018-04-01 23:45:30 -07:00
|
|
|
clean:
|
2018-05-16 22:10:46 -07:00
|
|
|
rm *.o $(TARGET) $(PEX) $(TEX) $(MEX)
|