lib3ddevil1/Makefile

39 lines
689 B
Makefile
Raw Permalink Normal View History

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
OBJ=devil1pld.o devil1tex.o devil1geo.o
2018-04-18 12:17:08 +05:30
all: $(TARGET) demos
$(TARGET): $(OBJ)
$(LINK.cc) $(LDFLAGS) $^ -o $@
2018-04-18 12:17:08 +05:30
demos: pld texture mesh
pld: $(OBJ)
$(CC) $^ demo/extractpld.c $(CFLAGS) -o $(PEX)
2018-04-18 12:17:08 +05:30
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)
2018-04-07 15:54:07 +05:30
devil1geo.o: src/devil1geo.c
$(CC) -c $^ $(CFLAGS)
clean:
rm *.o $(TARGET) $(PEX) $(TEX) $(MEX)