2018-04-22 04:14:09 +05:30
|
|
|
CC=gcc
|
|
|
|
CFLAGS=-I"include" -Wall -fPIC #-g
|
|
|
|
LDFLAGS=-shared
|
|
|
|
TARGET=lib3ddevil1.so
|
2018-04-18 12:17:08 +05:30
|
|
|
PEX=demo-extractpld
|
|
|
|
TEX=demo-extracttexture
|
|
|
|
MEX=demo-extractmesh
|
2018-04-22 04:14:09 +05:30
|
|
|
OBJ=devil1pld.o devil1tex.o devil1geo.o
|
2018-04-18 12:17:08 +05:30
|
|
|
|
2018-04-22 04:14:09 +05:30
|
|
|
all: $(TARGET) demos
|
|
|
|
|
|
|
|
$(TARGET): $(OBJ)
|
|
|
|
$(LINK.cc) $(LDFLAGS) $^ -o $@
|
2018-04-02 12:15:30 +05:30
|
|
|
|
2018-04-18 12:17:08 +05:30
|
|
|
|
2018-04-22 04:14:09 +05:30
|
|
|
demos: pld texture mesh
|
|
|
|
|
|
|
|
pld: $(OBJ)
|
2018-04-18 12:53:59 +05:30
|
|
|
$(CC) $^ demo/extractpld.c $(CFLAGS) -o $(PEX)
|
2018-04-18 12:17:08 +05:30
|
|
|
|
2018-04-22 04:14:09 +05:30
|
|
|
texture: $(OBJ)
|
2018-04-18 12:53:59 +05:30
|
|
|
$(CC) $^ demo/extracttexture.c $(CFLAGS) -o $(TEX)
|
2018-04-02 12:15:30 +05:30
|
|
|
|
2018-04-22 04:14:09 +05:30
|
|
|
mesh: $(OBJ)
|
2018-04-18 12:53:59 +05:30
|
|
|
$(CC) $^ demo/extractmesh.c $(CFLAGS) -o $(MEX)
|
2018-04-02 12:15:30 +05:30
|
|
|
|
2018-04-22 04:14:09 +05:30
|
|
|
|
2018-04-02 12:15:30 +05:30
|
|
|
devil1pld.o: src/devil1pld.c
|
|
|
|
$(CC) -c $^ $(CFLAGS)
|
|
|
|
|
2018-04-04 14:06:28 +05:30
|
|
|
devil1tex.o: src/devil1tex.c
|
|
|
|
$(CC) -c $^ $(CFLAGS)
|
|
|
|
|
2018-04-07 15:54:07 +05:30
|
|
|
devil1geo.o: src/devil1geo.c
|
|
|
|
$(CC) -c $^ $(CFLAGS)
|
|
|
|
|
2018-04-02 12:15:30 +05:30
|
|
|
clean:
|
2018-04-24 07:27:57 +05:30
|
|
|
rm *.o *.gch $(TARGET) $(PEX) $(TEX) $(MEX)
|