fix right scroll treshold
[rofl0r-openDOW.git] / Makefile
blobb14687d43cd8abdd9545113db97d0376ac78f271
1 LINKLIBS="-lpthread"
3 FNAME=spriteview
5 MAINFILE=$(FNAME).c
6 OUTFILE=$(FNAME).out
8 CFLAGS_OWN=-Wall -Wextra -DFLOD_NO_SOUNDBLASTER -DPALPIC_SDL -I.
9 CFLAGS_DBG=-g3 -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 clean:
22 rm -f $(OUTFILE)
23 rm -f *.o
24 rm -f $(FNAME).rcb
26 optimized:
27 CFLAGS="${CFLAGS_RCB_OPT} -s" rcb --force $(RCBFLAGS) ${MAINFILE} $(LINKLIBS)
28 strip --remove-section .comment ${OUTFILE}
30 optimized-aggressive:
31 CFLAGS="${CFLAGS_RCB_OPT_AGGRESSIVE} -s" rcb --force $(RCBFLAGS) ${MAINFILE} $(LINKLIBS)
32 strip --remove-section .comment ${OUTFILE}
34 odebug:
35 CFLAGS="${CFLAGS_RCB_OPT} -g" rcb --force $(RCBFLAGS) ${MAINFILE} $(LINKLIBS)
36 debug-stripper.sh $(OUTFILE)
38 debug:
39 CFLAGS="${CFLAGS_RCB_DBG}" rcb --force $(RCBFLAGS) ${MAINFILE} $(LINKLIBS)
42 .PHONY: all optimized optimized-aggressive debug odebug