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)
48 standalone-nofading.c\
69 #all: 403 npb npbd npb-ong1 npbd-ong1 bluenh bluenhd insert extract seediff insertframe mremapt-1 compare nofading nofadingd
70 all: enhance $(STANDALONE)
73 makefile: makefile.1.mak $(CONFIGFILE)
74 $(CONFIGURE_CMD) < makefile.1.mak > makefile
77 enhance: enhance.c core.h core.c $(H_SUBTOOL) $(C_SUBTOOL)
78 $(CC) $(CF) -o enhance enhance.c core.c $(C_SUBTOOL) $(L_IL)
80 $(STANDALONE): %: standalone-%.c %.c %.h core.c core.h
81 $(CC) $(CF) -o $@ standalone-$*.c $*.c core.c $(L_IL)
83 $(C_STANDALONE): standalone-%.c: settings-standalone.txt standalone.c
84 $(CONFIGURE) subtool=$* settings-standalone.txt --in standalone.c --out $@
87 #test: test.c core.h core.c
88 # $(CC) $(CF) -o test test.c core.c $(LF)
91 $(RM) -f enhance $(C_STANDALONE) $(STANDALONE)
95 #npb-ong1: npb-ong1.cpp makefile
96 # $(CC) $(CF) $(LF) -o npb-ong1 npb-ong1.cpp
98 #npb: npb.cpp makefile
99 # $(CC) $(CF) $(LF) -o npb npb.cpp
101 #403: 403.cpp makefile
102 # $(CC) $(CF) $(LF) -o 403 403.cpp
104 #npbd-ong1: npb npbd-ong1.cpp makefile
105 # $(CC) $(CF) -o npbd-ong1 npbd-ong1.cpp $(LF2)
107 #npbd: npb npbd.cpp makefile
108 # $(CC) $(CF) -o npbd npbd.cpp $(LF2)
110 #bluenh: bluenh.cpp makefile
111 # $(CC) $(CF) $(LF) -o bluenh bluenh.cpp
113 #bluenhd: bluenhd.cpp makefile
114 # $(CC) $(CF) -o bluenhd bluenhd.cpp $(LF2)
116 #insert: insert.c makefile
117 # $(CC) $(CF) $(LF) -o insert insert.c
119 #extract: extract.c makefile
120 # $(CC) $(CF) $(LF) -o extract extract.c
122 #seediff: seediff.c makefile
123 # $(CC) $(CF) $(LF) -o seediff seediff.c
125 #insertframe: insertframe.c makefile
126 # $(CC) $(CF) -o insertframe insertframe.c $(LF2)
128 #remapt-1: remapt-1.c makefile
129 # $(CC) $(CF) $(LF) -o remapt-1 remapt-1.c
131 #compare: compare.c makefile
132 # $(CC) $(CF) $(LF) -o compare compare.c
134 #nofading: nofading.c makefile
135 # $(CC) $(CF) $(LF) -o nofading nofading.c
137 #nofadingd: nofadingd.c makefile
138 # $(CC) $(CF) $(LF) -o nofadingd nofadingd.c