]> bicyclesonthemoon.info Git - ott/enhance/blob - makefile
16f61c11eab7211382e21583e71495e2335b7c93
[ott/enhance] / makefile
1 # "makefile" is automatically generated from "makefile.1.mak"
2 # 29.11.2022
3
4 # Copyright (C) 2022  Balthasar SzczepaƄski
5
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.
10
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.
15
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/>.
18
19
20 ifndef TARGET
21 TARGET    = release
22 # when want to change target run this first:
23 # make -B TARGET=target_name makefile
24 endif
25
26 CONFIGFILE = settings-$(TARGET).txt settings.txt
27
28 # The configuration tool
29 # http://bicyclesonthemoon.info/git/botm-config 
30 CONFIGURE = /botm/bin/config/configure.pl
31 CONFIGURE_CMD = $(PERL) $(CONFIGURE) $(CONFIGFILE)
32
33 CC   =gcc
34 CF   =-g -Wall
35 L_IL =-lIL
36 L_CGI=-lcgi
37
38 RM   =/usr/bin/rm
39
40 STANDALONE=\
41 nofading\
42 info\
43 bluenh\
44 reveal\
45 diff
46
47 C_STANDALONE=\
48 standalone-nofading.c\
49 standalone-info.c\
50 standalone-bluenh.c\
51 standalone-reveal.c\
52 standalone-diff.c
53
54 C_SUBTOOL=\
55 nofading.c\
56 info.c\
57 bluenh.c\
58 reveal.c\
59 diff.c
60
61 H_SUBTOOL=\
62 nofading.h\
63 info.h\
64 bluenh.h\
65 reveal.h\
66 diff.h
67
68
69 #all: 403 npb npbd npb-ong1 npbd-ong1 bluenh bluenhd insert extract seediff insertframe mremapt-1 compare nofading nofadingd
70 all: enhance $(STANDALONE)
71
72
73 makefile: makefile.1.mak $(CONFIGFILE)
74         $(CONFIGURE_CMD) < makefile.1.mak > makefile 
75
76
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)
79
80 $(STANDALONE): %: standalone-%.c %.c %.h core.c core.h
81         $(CC) $(CF) -o $@ standalone-$*.c $*.c core.c $(L_IL)
82
83 $(C_STANDALONE): standalone-%.c: settings-standalone.txt standalone.c
84         $(CONFIGURE) subtool=$* settings-standalone.txt --in standalone.c --out $@
85
86
87 #test: test.c core.h core.c
88 #       $(CC) $(CF) -o test test.c core.c $(LF)
89
90 clean:
91         $(RM) -f enhance $(C_STANDALONE) $(STANDALONE)
92
93 PHONY: all clean
94
95 #npb-ong1: npb-ong1.cpp makefile
96 #       $(CC) $(CF) $(LF) -o npb-ong1 npb-ong1.cpp
97 #
98 #npb: npb.cpp makefile
99 #       $(CC) $(CF) $(LF) -o npb npb.cpp
100 #
101 #403: 403.cpp makefile
102 #       $(CC) $(CF) $(LF) -o 403 403.cpp
103 #
104 #npbd-ong1: npb npbd-ong1.cpp makefile
105 #       $(CC) $(CF) -o npbd-ong1 npbd-ong1.cpp $(LF2)
106 #
107 #npbd: npb npbd.cpp makefile
108 #       $(CC) $(CF) -o npbd npbd.cpp $(LF2)
109 #
110 #bluenh: bluenh.cpp makefile
111 #       $(CC) $(CF) $(LF) -o bluenh bluenh.cpp
112 #
113 #bluenhd: bluenhd.cpp makefile
114 #       $(CC) $(CF) -o bluenhd bluenhd.cpp $(LF2)
115 #
116 #insert: insert.c makefile
117 #       $(CC) $(CF) $(LF) -o insert insert.c
118 #
119 #extract: extract.c makefile
120 #       $(CC) $(CF) $(LF) -o extract extract.c
121 #
122 #seediff: seediff.c makefile
123 #       $(CC) $(CF) $(LF) -o seediff seediff.c
124 #
125 #insertframe: insertframe.c makefile
126 #       $(CC) $(CF) -o insertframe insertframe.c $(LF2)
127 #
128 #remapt-1: remapt-1.c makefile
129 #       $(CC) $(CF) $(LF) -o remapt-1 remapt-1.c
130 #
131 #compare: compare.c makefile
132 #       $(CC) $(CF) $(LF) -o compare compare.c
133 #
134 #nofading: nofading.c makefile
135 #       $(CC) $(CF) $(LF) -o nofading nofading.c
136 #
137 #nofadingd: nofadingd.c makefile
138 #       $(CC) $(CF) $(LF) -o nofadingd nofadingd.c
139 #