pakextract/Makefile
Daniel Gibson 7dd6c848ec Support Daikatana and Quake(2) .pak files in same binary, -dk switch
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
2016-04-02 12:49:04 +02:00

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