pakextract/Makefile
Daniel Gibson 5f69e932eb dir entries array instead of linked list, other cleanups
also, read structs element-wise instead of the whole struct at once.

small fix in Makefile - use -std=gnu11, else on Linux I don't get
strsep()
2016-04-02 12:48:30 +02:00

42 lines
568 B
Makefile

# The compiler
CC := clang
# ----------
# Base CFLAGS
CFLAGS := -O2 -Wall -std=gnu11 -pedantic -DDAIKATANA
# ----------
# 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