mirror of
https://notabug.org/scuti/lib3ddevil1
synced 2024-11-22 05:42:59 +05:30
30 lines
607 B
Makefile
30 lines
607 B
Makefile
PEX=demo-extractpld
|
|
TEX=demo-extracttexture
|
|
MEX=demo-extractmesh
|
|
|
|
CC=gcc
|
|
CFLAGS= -I"include" -Wall
|
|
|
|
all: pld texture mesh
|
|
|
|
pld: devil1pld.o devil1tex.o devil1geo.o
|
|
$(CC) $^ demo/extractpld.c $(CFLAGS) -o $(PEX)
|
|
|
|
texture: devil1pld.o devil1tex.o devil1geo.o
|
|
$(CC) $^ demo/extracttexture.c $(CFLAGS) -o $(TEX)
|
|
|
|
mesh: devil1pld.o devil1tex.o 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)
|
|
|
|
devil1geo.o: src/devil1geo.c
|
|
$(CC) -c $^ $(CFLAGS)
|
|
|
|
clean:
|
|
rm *.o $(EX) $(PEX) $(TEX) $(MEX)
|