# "makefile" is automatically generated from "makefile.1.mak"
-# 01.12.2022
+# 04.12.2022
#
# Copyright (C) 2022 Balthasar SzczepaĆski
#
npb\
pal_mix\
pal_unmix\
+pal_mixdiff\
remap_t_1
C_STANDALONE=\
standalone-npb.c\
standalone-pal_mix.c\
standalone-pal_unmix.c\
+standalone-pal_mixdiff.c\
standalone-remap_t_1.c
C_SUBTOOL=\
npb.c\
pal_mix.c\
pal_unmix.c\
+pal_mixdiff.c\
remap_t_1.c
H_SUBTOOL=\
npb.h\
pal_mix.h\
pal_unmix.h\
+pal_mixdiff.h\
remap_t_1.h
H_PNG=\
npb1.h\
npb2.h\
npb_ong1.h\
-npb_403.h
+npb_403.h\
+nh.h
+
+CGI=\
+bluenh-cgi
+
+#C_CGI=\
+#bluenh-cgi.c
# keep these 2 lists in the same order!:
-GENERATE_FROM=
+GENERATE_FROM=\
+online-core.1.h
-TO_GENERATE=
+TO_GENERATE=\
+online-core.h
#all: 403 npb npbd npb-ong1 npbd-ong1 bluenh bluenhd insert extract seediff insertframe mremapt-1 compare nofading nofadingd
-all: enhance $(STANDALONE)
+all: enhance $(STANDALONE) $(CGI)
makefile: makefile.1.mak $(CONFIGFILE)
$(TO_GENERATE): $(GENERATE_FROM) $(CONFIGFILE)
$(CONFIGURE_CMD) --in $(GENERATE_FROM) --out $(TO_GENERATE)
+
+$(CGI): %: %.c online-core.c online-core.h $(H_PNG)
+ $(CC) $(CF) -o $@ $*.c online-core.c $(L_CGI)
$(H_PNG): %.h: %.png f2h
./f2h $* $*.png $@
# $(CC) $(CF) -o test test.c core.c $(LF)
clean:
- $(RM) -f enhance $(C_STANDALONE) $(STANDALONE) $(TO_GENERATE) f2h $(H_PNG) $(H_SUBTOOL)
+ $(RM) -f enhance $(C_STANDALONE) $(STANDALONE) $(TO_GENERATE) f2h $(H_PNG) $(H_SUBTOOL) $(CGI)
PHONY: all clean