increase benchmark duration
[rofl0r-stringswitch.git] / Makefile
blob53094433ced4e0331878fa15de7f1841c82d32be
1 LINKLIBS=
3 FNAME=stringswitch_gen
5 MAINFILE=$(FNAME).c
6 OUTFILE=$(FNAME).out
8 CFLAGS_OWN=-Wall -Wextra -static -std=c99
9 CFLAGS_DBG=-g -O0
10 CFLAGS_OPT=-s -Os
12 -include config.mak
14 CFLAGS_RCB_OPT=${CFLAGS_OWN} ${CFLAGS_OPT} ${CFLAGS}
15 CFLAGS_RCB_DBG=${CFLAGS_OWN} ${CFLAGS_DBG} ${CFLAGS}
17 all: debug
19 optimized:
20 CFLAGS="${CFLAGS_RCB_OPT}" rcb --force $(RCBFLAGS) ${MAINFILE} $(LINKLIBS)
21 strip --remove-section .comment ${OUTFILE}
23 debug:
24 CFLAGS="${CFLAGS_RCB_DBG}" rcb --force $(RCBFLAGS) ${MAINFILE} $(LINKLIBS)
27 .PHONY: all obfuscated debug