1 # "makefile" is automatically generated from "makefile.1.mak"
4 # Copyright (C) 2022 Balthasar SzczepaĆski
6 # This program is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU Affero General Public License as
8 # published by the Free Software Foundation, either version 3 of the
9 # License, or (at your option) any later version.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU Affero General Public License for more details.
16 # You should have received a copy of the GNU Affero General Public License
17 # along with this program. If not, see <http://www.gnu.org/licenses/>.
22 # when want to change target run this first:
23 # make -B TARGET=target_name makefile
26 CONFIGFILE = settings-$(TARGET).txt settings.txt
28 # The configuration tool
29 # http://bicyclesonthemoon.info/git/botm-config
30 CONFIGURE = /botm/bin/config/configure.pl
31 CONFIGURE_CMD = $(PERL) $(CONFIGURE) $(CONFIGFILE)
53 standalone-nofading.c\
60 standalone-pal_unmix.c\
61 standalone-pal_mixdiff.c\
62 standalone-remap_t_1.c
95 # keep these 2 lists in the same order!:
101 #all: 403 npb npbd npb-ong1 npbd-ong1 bluenh bluenhd insert extract seediff insertframe mremapt-1 compare nofading nofadingd
102 all: enhance $(STANDALONE)
105 makefile: makefile.1.mak $(CONFIGFILE)
106 $(CONFIGURE_CMD) < makefile.1.mak > makefile
109 enhance: enhance.c core.h core.c $(H_SUBTOOL) $(C_SUBTOOL) $(H_PNG)
110 $(CC) $(CF) -o enhance enhance.c core.c $(C_SUBTOOL) $(L_IL)
112 $(STANDALONE): %: standalone-%.c %.c %.h core.c core.h $(H_PNG)
113 $(CC) $(CF) -o $@ standalone-$*.c $*.c core.c $(L_IL)
115 $(C_STANDALONE): standalone-%.c: settings-subtool.txt standalone.c
116 $(CONFIGURE) subtool=$* settings-subtool.txt --in standalone.c --out $@
118 $(H_SUBTOOL): %.h: settings-subtool.txt subtool.h
119 $(CONFIGURE) subtool=$* settings-subtool.txt --in subtool.h --out $@
121 $(TO_GENERATE): $(GENERATE_FROM) $(CONFIGFILE)
122 $(CONFIGURE_CMD) --in $(GENERATE_FROM) --out $(TO_GENERATE)
124 $(H_PNG): %.h: %.png f2h
128 $(CC) $(CF) -o f2h f2h.c
131 #test: test.c core.h core.c
132 # $(CC) $(CF) -o test test.c core.c $(LF)
135 $(RM) -f enhance $(C_STANDALONE) $(STANDALONE) $(TO_GENERATE) f2h $(H_PNG) $(H_SUBTOOL)
139 #npbd-ong1: npb npbd-ong1.cpp makefile
140 # $(CC) $(CF) -o npbd-ong1 npbd-ong1.cpp $(LF2)
142 #npbd: npb npbd.cpp makefile
143 # $(CC) $(CF) -o npbd npbd.cpp $(LF2)
145 #bluenhd: bluenhd.cpp makefile
146 # $(CC) $(CF) -o bluenhd bluenhd.cpp $(LF2)
148 #seediff: seediff.c makefile
149 # $(CC) $(CF) $(LF) -o seediff seediff.c
151 #insertframe: insertframe.c makefile
152 # $(CC) $(CF) -o insertframe insertframe.c $(LF2)
154 #remapt-1: remapt-1.c makefile
155 # $(CC) $(CF) $(LF) -o remapt-1 remapt-1.c
157 #compare: compare.c makefile
158 # $(CC) $(CF) $(LF) -o compare compare.c
160 #nofadingd: nofadingd.c makefile
161 # $(CC) $(CF) $(LF) -o nofadingd nofadingd.c