mirror of
https://notabug.org/scuti/lib3ddevil1
synced 2024-12-22 05:19:45 +05:30
39 lines
689 B
Makefile
39 lines
689 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 $(TARGET) $(PEX) $(TEX) $(MEX)
|