pakextract/Makefile
Yamagi Burmeister bb50d7486e Overhaul the Makefile:
- Switch DAIKATANA on
- C11 instead of C89
- Clang is better than gcc ;)
2016-04-01 23:41:17 +02:00

42 lines
566 B
Makefile

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