3 # just enter smake to rebuild the current binary
4 # use smake 68k to build all 68k-version including the creation of the patches
5 # use smake docs to rebuild the guides
8 # ppc-amigaos-ld -r -o flexcat.elf lib:c_ppc.o flexcat.o flexcat_cat.o lib:scppc.a lib:end.o
10 LINKERLIBS = lib:sc.lib lib:amiga.lib
11 LINKERFLAGS = NOICONS BATCH
12 CFLAGS = NoStackCheck NoStackExt UnsignedChars \
13 CommentNest ErrorRexx NoMultipleIncludes \
14 NoIcons GenProtoParameters NoLink \
15 MultipleCharacterConstants \
16 Optimize OptTime OptSched
19 CATALOG = FlexCat_cat.h
20 SRC = FlexCat.c FlexCat_cat.c
21 OBJ = FlexCat.o FlexCat_cat.o
24 all: $(CATALOG) $(MAIN)
27 @echo "*e[32mRemoving .(o|lnk)...*e[0m"
33 @echo "*e[32mMaking $@ 68000*e[0m"
34 @sc $(SRC) $(CFLAGS) CPU=000
35 @slink to FlexCat from lib:c.o $(OBJ) lib $(LINKERLIBS) $(LINKERFLAGS)
36 @echo "*e[32mMaking $@ 68020*e[0m"
37 @sc $(SRC) $(CFLAGS) CPU=020
38 @slink to FlexCat.020 from lib:c.o $(OBJ) lib $(LINKERLIBS) $(LINKERFLAGS)
39 @scompare -oFlexCat.020.pch FlexCat FlexCat.020
40 @echo "*e[32mMaking $@ 68040*e[0m"
41 @sc $(SRC) $(CFLAGS) CPU=040
42 @slink to FlexCat.040 from lib:c.o $(OBJ) lib $(LINKERLIBS) $(LINKERFLAGS)
43 @scompare -oFlexCat.040.pch FlexCat FlexCat.040
44 @echo "*e[32mMaking $@ 68060*e[0m"
45 @sc $(SRC) $(CFLAGS) CPU=060
46 @slink to FlexCat.060 from lib:c.o $(OBJ) lib $(LINKERLIBS) $(LINKERFLAGS)
47 @scompare -oFlexCat.060.pch FlexCat FlexCat.060
50 @echo "*e[32mMaking $@ PPC*e[0m"
52 @ppc-amigaos-ld -r -o flexcat.elf lib:c_ppc.o FlexCat.o FlexCat_cat.o lib:scppc.a lib:end.o
55 FlexCat_cat.h: Catalogs_Src/FlexCat.cd
56 @echo "*e[32mProcessing $@*e[0m"
57 @FlexCat Catalogs_Src/FlexCat.cd flexcat_cat.c=lib/C_c.sd
58 @FlexCat Catalogs_Src/FlexCat.cd flexcat_cat.h=lib/C_h.sd
59 @FlexCat Catalogs_Src/FlexCat.cd flexcat_cat.h.unix=lib/Hardcode_h.sd
61 FlexCat: FlexCat.c FlexCat_cat.h
62 @echo "*e[32mMaking $@*e[0m"
63 @sc $(SRC) $(CFLAGS) CPU=000
64 @slink to $@ from lib:c.o $(OBJ) lib $(LINKERLIBS) $(LINKERFLAGS)
67 @C:list FILES Catalogs_Src/#?.ct lformat "FlexCat Catalogs_Src/FlexCat.cd %p%n catalog Catalogs/%m/FlexCat.catalog FLUSH" >T:dik
72 @$(MAKEINFO) Catalogs_Src/FlexCat_deutsch.texinfo --amiga-39 --fill-column 76 --output Docs/FlexCat_deutsch.guide
73 @$(MAKEINFO) Catalogs_Src/FlexCat_english.texinfo --amiga-39 --fill-column 76 --output Docs/FlexCat_english.guide
74 @$(MAKEINFO) Catalogs_Src/FlexCat_español.texinfo --amiga-39 --fill-column 76 --output Docs/FlexCat_español.guide
75 @$(MAKEINFO) Catalogs_Src/FlexCat_svenska.texinfo --amiga-39 --fill-column 76 --output Docs/FlexCat_svenska.guide
79 @lha >nil: u -2xer RAM:FlexCat.lha Catalogs Docs/FlexCat_english.guid* Lib Contribution
80 @lha >nil: u -2xer RAM:FlexCat.lha FlexCat FlexCat.history Docs.info FlexCat.readme
81 @copy FlexCat.readme RAM:
82 @echo FlexCat_ExDocs...
83 @lha >nil: u -2xer RAM:FlexCat_ExDocs.lha Docs Docs.info
84 @lha >nil: d RAM:FlexCat_ExDocs.lha Docs/FlexCat_english.guid*
85 @copy FlexCat_ExDocs.readme RAM:
86 @echo FlexCat_CatSrc...
87 @lha >nil: u -2xer RAM:FlexCat_CatSrc.lha Catalogs_Src
88 @lha >nil: d ram:FlexCat_CatSrc.lha Catalogs_Src/OLD* Catalogs_Src/*,v
89 @copy FlexCat_CatSrc.readme RAM:
91 @lha >nil: u -2 RAM:FlexCat_0x0.lha FlexCat.*.pch FlexCat_0x0.readme
92 @lha >nil: u -2 RAM:FlexCat_0x0.lha SC:C/spatch
93 @copy FlexCat_0x0.readme RAM:
95 @lha >nil: u -2xer RAM:FlexCat_Src.lha FlexCat.c FlexCat.history developer.readme FlexCat.announce FlexCat_cat.h.unix TODO smakefile in
96 @copy FlexCat_Src.readme RAM:
97 @echo FlexCat_Demos...
98 @lha >nil: u -2xer RAM:FlexCat_Demos.lha FlexCat_Demos
99 @copy FlexCat_Demos.readme RAM:
102 @echo Main archive...
103 @lzx >nil: u -3 -x -e -r RAM:FlexCat.lzx Catalogs Docs/FlexCat_english.guid* Lib Contribution
104 @lzx >nil: u -3 -x -e -r RAM:FlexCat.lzx FlexCat FlexCat.history Docs.info FlexCat.readme
105 @copy FlexCat.readme RAM:
106 @echo FlexCat_ExDocs...
107 @lzx >nil: u -3 -x -e -r RAM:FlexCat_ExDocs.lzx Docs Docs.info
108 @lzx >nil: d RAM:FlexCat_ExDocs.lzx Docs/FlexCat_english.guid*
109 @copy FlexCat_ExDocs.readme RAM:
110 @echo FlexCat_CatSrc...
111 @lzx >nil: u -3 -x -e -r RAM:FlexCat_CatSrc.lzx Catalogs_Src
112 @lzx >nil: d ram:FlexCat_CatSrc.lzx Catalogs_Src/OLD* Catalogs_Src/*,v
113 @copy FlexCat_CatSrc.readme RAM:
115 @lzx >nil: u -3 RAM:FlexCat_0x0.lzx FlexCat.*.pch FlexCat_0x0.readme
116 @lzx >nil: u -3 RAM:FlexCat_0x0.lzx SC:C/spatch
117 @copy FlexCat_0x0.readme RAM:
119 @lzx >nil: u -3 -x -e -r RAM:FlexCat_Src.lzx FlexCat.c FlexCat.history Developer.readme FlexCat.announce TODO smakefile in
120 @copy FlexCat_Src.readme RAM:
121 @echo FlexCat_Demos...
122 @lha >nil: u -3 -x -e -r RAM:FlexCat_Demos.lzx FlexCat_Demos
123 @copy FlexCat_Demos.readme RAM:
126 @lzx >nil: u -3 -x -e -r RAM:FlexCat_beta_bin.lzx FlexCat FlexCat.history
129 @sc:c/scompare -oFlexCat.020.pch FlexCat FlexCat.020
130 @sc:c/scompare -oFlexCat.040.pch FlexCat FlexCat.040
131 @sc:c/scompare -oFlexCat.060.pch FlexCat FlexCat.060
132 # @runelf sc:c/scompare -oFlexCat.020.pch -s FlexCat FlexCat.020
133 # @runelf sc:c/scompare -oFlexCat.040.pch -s FlexCat FlexCat.040
134 # @runelf sc:c/scompare -oFlexCat.060.pch -s FlexCat FlexCat.060