blob: e96899015af6d81d23ae024249c3caa308ec034b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
|
#!/bin/sh
cd "$(dirname "$(readlink -f "$0")")"
ALF_HEADERS=$(cd alf; ls *.h)
ALF_SOURCES=$(cd alf; ls *.cpp)
ALF_MINGW_OBJECTS=$(for i in $ALF_SOURCES; do printf ' out/%s.o' "$(basename "$i" .cpp)"; done)
ALF_VC6_OBJECTS=$(for i in $ALF_SOURCES; do printf ' out/%s.obj' "$(basename "$i" .cpp)"; done)
# mingw makefile
(
printf '# automatically created by makemakefile.sh. DO NOT EDIT!\n'
printf '\n'
printf 'CC = i686-w64-mingw32-gcc\n'
printf 'CXX = i686-w64-mingw32-c++\n'
printf 'CFLAGS = -std=c99 -Wall -Wextra -Wconversion -mwindows -municode -DUNICODE -D_UNICODE -gstabs\n'
printf 'CXXFLAGS = -std=c++98 -Wall -Wextra -Wconversion -Wsign-conversion -mwindows -municode -DUNICODE -D_UNICODE -fno-exceptions -fno-rtti -gstabs\n'
printf 'LDFLAGS = -luser32 -lcomctl32 -lshell32 -lversion -static\n'
printf '\n'
printf 'all: out/widgetfactory.exe out/alf/alf.c out/widgetfactory-c.exe\n'
printf '\n'
printf 'out/widgetfactory.exe: out/widgetfactory.o %s\n' "$ALF_MINGW_OBJECTS"
printf '\t$(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS)\n'
printf '\n'
for i in $ALF_SOURCES; do
printf 'out/%s: %s %s\n' "$(basename "$i" .cpp).o" "alf/$i" "$(for k in $ALF_HEADERS; do printf ' alf/%s' "$k"; done)"
printf '\t$(CXX) $(CXXFLAGS) -c -o $@ $<\n\n'
done
printf 'out/widgetfactory.o: widgetfactory.cpp alf/alf.h\n'
printf '\t$(CXX) $(CXXFLAGS) -c -o $@ $<\n\n'
printf 'out/alf/alf.c: alf/alflist.h alf/alflayout.h alf/alfcompat.h alf/alfpriv.h %s\n' "$(for k in $ALF_SOURCES; do printf ' alf/%s' "$k"; done)"
printf '\t@mkdir -p out/alf\n'
printf '\t@printf "#include \\"alf.h\\"\\\\n" > $@\n'
printf '\t@cat $^ | grep -v "^#pragma once" | grep -v "^#include \\"alf" >> $@\n\n'
printf 'out/alf/alf.h: alf/alf.h\n'
printf '\t@mkdir -p out/alf\n'
printf '\t@cp $< $@\n\n'
printf 'out/widgetfactory.c: widgetfactory.cpp\n'
printf '\t@cp $< $@\n\n'
printf 'out/widgetfactory-c.exe: out/widgetfactory.c out/alf/alf.h out/alf/alf.c\n'
printf '\t$(CC) $(CFLAGS) -o $@ out/widgetfactory.c out/alf/alf.c $(LDFLAGS)\n\n'
printf 'clean:\n'
printf '\trm -rf out/*.o out/*.exe out/*.c out/*.h out/alf\n\n'
) > Makefile.mingw
# vc6 makefile
(
printf '# automatically created by makemakefile.sh. DO NOT EDIT!\n'
printf '\n'
printf 'CXX = cl.exe\n'
printf 'CFLAGS = -O2 -GA -W3 -DUNICODE -D_UNICODE -D_WIN32=0x0501 -D_WIN32_WINNT=0x0501 -D_WIN32_IE=0x0501 -nologo\n'
printf 'LDFLAGS = /link unicows.lib kernel32.lib user32.lib comctl32.lib shell32.lib gdi32.lib version.lib\n'
printf '\n'
printf 'out/widgetfactory.exe: out/widgetfactory.obj %s\n' "$ALF_VC6_OBJECTS"
printf '\t$(CXX) $(CFLAGS) -Fe$@ $** $(LDFLAGS)\n'
printf '\n'
for i in $ALF_SOURCES; do
printf 'out/%s: %s %s\n' "$(basename "$i" .cpp).obj" "alf/$i" "$(for k in $ALF_HEADERS; do printf ' alf/%s' "$k"; done)"
printf '\t$(CXX) $(CFLAGS) -c -Fo$@ %s\n\n' "alf/$i"
done
printf 'out/widgetfactory.obj: widgetfactory.cpp alf/alf.h\n'
printf '\t$(CXX) $(CFLAGS) -c -Fo$@ widgetfactory.cpp\n\n'
printf 'clean:\n'
printf '\tdel /f out\\*.obj out\\*.exe\n\n'
) > Makefile.vc6
# vc6 nt31 makefile
(
printf '# automatically created by makemakefile.sh. DO NOT EDIT!\n'
printf '\n'
printf 'CXX = cl.exe\n'
printf 'CFLAGS = -O2 -GA -W3 -DUNICODE -D_UNICODE -D_WIN32=0x0501 -D_WIN32_WINNT=0x0501 -D_WIN32_IE=0x0501 -nologo\n'
printf 'LDFLAGS = /link /subsystem:windows,3.10 /entry:_entry kernel32.lib user32.lib comctl32.lib shell32.lib gdi32.lib version.lib\n'
printf '\n'
printf 'out/widgetfactory.exe: out/widgetfactory.obj %s\n' "$ALF_VC6_OBJECTS"
printf '\t$(CXX) $(CFLAGS) -Fe$@ $** $(LDFLAGS)\n'
printf '\n'
for i in $ALF_SOURCES; do
printf 'out/%s: %s %s\n' "$(basename "$i" .cpp).obj" "alf/$i" "$(for k in $ALF_HEADERS; do printf ' alf/%s' "$k"; done)"
printf '\t$(CXX) $(CFLAGS) -c -Fo$@ %s\n\n' "alf/$i"
done
printf 'out/widgetfactory.obj: widgetfactory.cpp alf/alf.h\n'
printf '\t$(CXX) $(CFLAGS) -c -Fo$@ widgetfactory.cpp\n\n'
printf 'clean:\n'
printf '\tdel /f out\\*.obj out\\*.exe\n\n'
) > Makefile.vc6-nt31
# vc6 ANSI makefile
(
printf '# automatically created by makemakefile.sh. DO NOT EDIT!\n'
printf '\n'
printf 'CXX = cl.exe\n'
printf 'CFLAGS = -O2 -GA -W3 -D_WIN32=0x0501 -D_WIN32_WINNT=0x0501 -D_WIN32_IE=0x0501 -nologo\n'
printf 'LDFLAGS = /link /entry:_entry kernel32.lib user32.lib comctl32.lib shell32.lib gdi32.lib version.lib\n'
printf '\n'
printf 'out/widgetfactory.exe: out/widgetfactory.obj %s\n' "$ALF_VC6_OBJECTS"
printf '\t$(CXX) $(CFLAGS) -Fe$@ $** $(LDFLAGS)\n'
printf '\n'
for i in $ALF_SOURCES; do
printf 'out/%s: %s %s\n' "$(basename "$i" .cpp).obj" "alf/$i" "$(for k in $ALF_HEADERS; do printf ' alf/%s' "$k"; done)"
printf '\t$(CXX) $(CFLAGS) -c -Fo$@ %s\n\n' "alf/$i"
done
printf 'out/widgetfactory.obj: widgetfactory.cpp alf/alf.h\n'
printf '\t$(CXX) $(CFLAGS) -c -Fo$@ widgetfactory.cpp\n\n'
printf 'clean:\n'
printf '\tdel /f out\\*.obj out\\*.exe\n\n'
) > Makefile.vc6-ansi
# vc6 NT3.1/Win32s ANSI makefile
(
printf '# automatically created by makemakefile.sh. DO NOT EDIT!\n'
printf '\n'
printf 'CXX = cl.exe\n'
printf 'CFLAGS = -O2 -GA -W3 -D_WIN32=0x0501 -D_WIN32_WINNT=0x0501 -D_WIN32_IE=0x0501 -nologo\n'
printf 'LDFLAGS = /link /subsystem:windows,3.10 /entry:_entry /fixed:no kernel32.lib user32.lib comctl32.lib shell32.lib gdi32.lib version.lib\n'
printf '\n'
printf 'out/widgetfactory.exe: out/widgetfactory.obj %s\n' "$ALF_VC6_OBJECTS"
printf '\t$(CXX) $(CFLAGS) -Fe$@ $** $(LDFLAGS)\n'
printf '\n'
for i in $ALF_SOURCES; do
printf 'out/%s: %s %s\n' "$(basename "$i" .cpp).obj" "alf/$i" "$(for k in $ALF_HEADERS; do printf ' alf/%s' "$k"; done)"
printf '\t$(CXX) $(CFLAGS) -c -Fo$@ %s\n\n' "alf/$i"
done
printf 'out/widgetfactory.obj: widgetfactory.cpp alf/alf.h\n'
printf '\t$(CXX) $(CFLAGS) -c -Fo$@ widgetfactory.cpp\n\n'
printf 'clean:\n'
printf '\tdel /f out\\*.obj out\\*.exe\n\n'
) > Makefile.vc6-ansi-31
|