lib3ddevil1/Makefile

30 lines
613 B
Makefile
Raw Normal View History

2018-04-18 12:17:08 +05:30
PEX=demo-extractpld
TEX=demo-extracttexture
MEX=demo-extractmesh
CC=gcc
CFLAGS= -I"include"
2018-04-18 12:17:08 +05:30
all: pld texture mesh
pld: devil1pld.o devil1tex.o src/devil1geo.o
$(CC) $^ demo/extractpld.c $(CFLAGS) -o $(PEX)
2018-04-18 12:17:08 +05:30
texture: devil1pld.o devil1tex.o src/devil1geo.o
$(CC) $^ demo/extracttexture.c $(CFLAGS) -o $(TEX)
2018-04-18 12:17:08 +05:30
mesh: devil1pld.o devil1tex.o src/devil1geo.o
$(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 $(EX) $(PEX) $(TEX) $(MEX)