mirror of
https://github.com/yquake2/pakextract.git
synced 2024-11-21 19:31:29 +00:00
7dd6c848ec
by default pakextract now assumes Quake(2) format paks, add the -dk switch to the commandline for Daikatana format. e.g.: pakextract -dk -l /path/to/Daikatana/data/pak1.pak will list the files in Daikatana's pak1.pak
42 lines
556 B
Makefile
42 lines
556 B
Makefile
# The compiler
|
|
CC := clang
|
|
|
|
# ----------
|
|
|
|
# Base CFLAGS
|
|
CFLAGS := -O2 -Wall -std=gnu11 -pedantic
|
|
|
|
# ----------
|
|
|
|
# When make is invoked by "make VERBOSE=1" print
|
|
# the compiler and linker commands.
|
|
ifdef VERBOSE
|
|
Q :=
|
|
else
|
|
Q := @
|
|
endif
|
|
|
|
# ----------
|
|
|
|
# The converter rule
|
|
%.o: %.c
|
|
@echo '===> CC $<'
|
|
${Q}$(CC) -c $(CFLAGS) -o $@ $<
|
|
|
|
# ----------
|
|
|
|
PAK_OBJS = \
|
|
pakextract.o
|
|
|
|
# ----------
|
|
|
|
pakextract: $(PAK_OBJS)
|
|
@echo '===> LD $@'
|
|
${Q}$(CC) $(PAK_OBJS) -o $@
|
|
|
|
# ----------
|
|
|
|
clean:
|
|
@echo "===> CLEAN"
|
|
${Q}rm -Rf pakextract.o pakextract
|
|
|