mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-14 00:40:55 +00:00
6cefb63e2e
only dumps the file names/sizes and segs if it's used incorrectly, but it's a start.
27 lines
405 B
Makefile
27 lines
405 B
Makefile
EXE=pak
|
|
|
|
MAKEDEPS=$(CC) -MM $(CPPFLAGS) $< | sed -e 's/$*\.o:*/$*\.o $@:/g' > $@
|
|
|
|
CFLAGS+=-Wall -Werror -g -O2
|
|
CPPFLAGS+=
|
|
#LDFLAGS=-static
|
|
LIBS=
|
|
vpath %.a
|
|
|
|
SRC=pak.c pakfile.c
|
|
|
|
%.d: %.c
|
|
$(MAKEDEPS)
|
|
|
|
OBJ=$(patsubst %,%.o,$(basename $(SRC)))
|
|
DEP=$(patsubst %.o,%.d,$(OBJ))
|
|
|
|
all: $(EXE)
|
|
|
|
$(EXE): $(OBJ) $(LIBS)
|
|
$(CC) $(LDFLAGS) -o $@ $^ -lQFutil -lz -lm
|
|
|
|
clean:
|
|
rm -f $(EXE) *.o *.d core
|
|
|
|
-include $(DEP)
|