mirror of
https://notabug.org/scuti/lib3ddevil1
synced 2024-11-22 05:42:59 +05:30
39 lines
695 B
Makefile
39 lines
695 B
Makefile
CC=gcc
|
|
CFLAGS=-I"include" -Wall -fPIC #-g
|
|
LDFLAGS=-shared
|
|
TARGET=lib3ddevil1.so
|
|
PEX=demo-extractpld
|
|
TEX=demo-extracttexture
|
|
MEX=demo-extractmesh
|
|
OBJ=devil1pld.o devil1tex.o devil1geo.o
|
|
|
|
all: $(TARGET) demos
|
|
|
|
$(TARGET): $(OBJ)
|
|
$(LINK.cc) $(LDFLAGS) $^ -o $@
|
|
|
|
|
|
demos: pld texture mesh
|
|
|
|
pld: $(OBJ)
|
|
$(CC) $^ demo/extractpld.c $(CFLAGS) -o $(PEX)
|
|
|
|
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)
|
|
|
|
devil1geo.o: src/devil1geo.c
|
|
$(CC) -c $^ $(CFLAGS)
|
|
|
|
clean:
|
|
rm *.o *.gch $(TARGET) $(PEX) $(TEX) $(MEX)
|