2019-08-17 03:33:01 +08:00
|
|
|
# reveng will compile without macros, but these may be useful:
|
|
|
|
# Add -DBMPMACRO to use bitmap size constant macros (edit config.h)
|
|
|
|
# Add -DNOFORCE to disable the -F switch
|
|
|
|
# Add -DPRESETS to compile with preset models (edit config.h)
|
|
|
|
|
|
|
|
MYSRCPATHS =
|
2020-05-07 20:20:49 +08:00
|
|
|
MYINCLUDES = -I../cliparser -I../../src -I../../../include
|
2020-04-20 04:55:28 +08:00
|
|
|
MYCFLAGS =
|
2019-08-17 03:33:01 +08:00
|
|
|
MYDEFS = -DPRESETS
|
|
|
|
MYSRCS = \
|
|
|
|
bmpbit.c \
|
|
|
|
cli.c \
|
|
|
|
model.c \
|
|
|
|
poly.c \
|
|
|
|
preset.c \
|
|
|
|
reveng.c
|
|
|
|
|
|
|
|
LIB_A = libreveng.a
|
|
|
|
|
2020-04-21 07:44:31 +08:00
|
|
|
# Transition: remove old directories and objects
|
|
|
|
MYCLEANOLDPATH = ../../reveng
|
|
|
|
|
2020-04-16 16:25:29 +08:00
|
|
|
include ../../../Makefile.host
|
2019-08-17 03:33:01 +08:00
|
|
|
|
2020-05-01 06:13:56 +08:00
|
|
|
ifneq ($(SKIPREVENGTEST),1)
|
2019-08-17 03:33:01 +08:00
|
|
|
CLEAN += bmptst
|
|
|
|
|
|
|
|
$(BINDIR)/$(LIB_A): $(BINDIR)/bmptst
|
|
|
|
|
|
|
|
$(BINDIR)/bmptst: bmpbit.c config.h reveng.h
|
|
|
|
$(info [-] CC $<)
|
|
|
|
$(Q)$(CC) $(CFLAGS) -DBMPTST -o $@ $<
|
|
|
|
$(info [=] TEST $@)
|
|
|
|
$(Q)( ./$@ && $(TOUCH) $@ ) || ( $(RM) $@ && $(FALSE) )
|
2020-05-01 06:13:56 +08:00
|
|
|
endif
|
2019-08-17 03:33:01 +08:00
|
|
|
|
|
|
|
.PHONY: all clean
|