fix format string bug in use without arguments
[rofl0r-jobflow.git] / Makefile
blob0e40920341de794d888053d7245d1e2a85cfc028
1 LINKLIBS=""
3 FNAME=jobflow
5 MAINFILE=$(FNAME).c
6 OUTFILE=$(FNAME).out
8 CFLAGS_OWN=-Wall -Wextra -std=c99 -D_GNU_SOURCE
9 CFLAGS_DBG=-g -O0
10 CFLAGS_OPT=-Os -s
11 CFLAGS_OPT_AGGRESSIVE=-O3 -s -flto -fwhole-program
13 -include config.mak
15 CFLAGS_RCB_OPT_AGGRESSIVE=$(DB_FLAGS) ${CFLAGS_OWN} ${CFLAGS_OPT_AGGRESSIVE} ${CFLAGS}
16 CFLAGS_RCB_OPT=$(DB_FLAGS) ${CFLAGS_OWN} ${CFLAGS_OPT} ${CFLAGS}
17 CFLAGS_RCB_DBG=$(DB_FLAGS) ${CFLAGS_OWN} ${CFLAGS_DBG} ${CFLAGS}
19 all: debug
21 optimized:
22 CFLAGS="${CFLAGS_RCB_OPT} -s" rcb --force $(RCBFLAGS) ${MAINFILE} $(LINKLIBS)
23 strip --remove-section .comment ${OUTFILE}
25 optimized-aggressive:
26 CFLAGS="${CFLAGS_RCB_OPT_AGGRESSIVE} -s" rcb --force $(RCBFLAGS) ${MAINFILE} $(LINKLIBS)
27 strip --remove-section .comment ${OUTFILE}
29 odebug:
30 CFLAGS="${CFLAGS_RCB_OPT} -g" rcb --force $(RCBFLAGS) ${MAINFILE} $(LINKLIBS)
31 debug-stripper.sh $(OUTFILE)
33 debug:
34 CFLAGS="${CFLAGS_RCB_DBG}" rcb --force $(RCBFLAGS) ${MAINFILE} $(LINKLIBS)
37 .PHONY: all optimized optimized-aggressive debug odebug