radare2/libr/util/t/Makefile
pancake 8ba7b6b043 * Many build fixes for mingw32
- See doc/windows
* Rename config.mk to global.mk
  - Avoid name collision (cascade includes in rules.mk)
* Added ${EXT_EXE} in some test program directories
* Split rules.mk into config.mk
  - Some scripts just need to get the environ (config.mk)
  - They dont need the rules

--HG--
rename : config.mk => global.mk
2010-01-15 01:32:28 +01:00

46 lines
979 B
Makefile

# TODO: append EXECEXT to BINS
FLAGS=-I../../include -Wl,-R.. -L.. -lr_util -g -DVERSION=\"${VERSION}\"
BINS=test${EXT_EXE}
BINS+=rax2${EXT_EXE}
BINS+=ralloc${EXT_EXE}
BINS+=iter${EXT_EXE}
BINS+=file_slurp_hexpairs${EXT_EXE}
BINS+=pool${EXT_EXE}
BINS+=test_sys${EXT_EXE}
BINS+=test_str${EXT_EXE}
all: test${EXT_EXE}
#all: ${BINS}
ralloc${EXT_EXE}:
${CC} ${FLAGS} ralloc.c -o ralloc${EXT_EXE}
test${EXT_EXE}: test.c
${CC} ${FLAGS} test.c -o test${EXT_EXE}
test_sys${EXT_EXE}: test_sys.c
${CC} ${FLAGS} test_sys.c -o test_sys${EXT_EXE}
test_str${EXT_EXE}: test_str.c
${CC} ${FLAGS} test_str.c -o test_str${EXT_EXE}
pool${EXT_EXE}:
${CC} ${FLAGS} pool.c -o pool${EXT_EXE}
rax2${EXT_EXE}:
${CC} ${FLAGS} rax2.c -o rax2${EXT_EXE}
iter${EXT_EXE}:
${CC} ${FLAGS} iter.c -o iter${EXT_EXE}
file_slurp_hexpairs${EXT_EXE}:
${CC} ${FLAGS} test_file_slurp_hexpairs.c -o file_slurp_hexpairs${EXT_EXE}
clean:
rm -f ${BINS}
.PHONY: ${BINS} clean all
include ../../rules.mk