From 61eaa8e3e38058da6dcbf7351efe3fc97894ec8b Mon Sep 17 00:00:00 2001 From: George Sokianos Date: Sun, 9 Jan 2022 20:09:27 +0000 Subject: [PATCH] Added some changes and added release rule --- Makefile.AmigaOS | 5 +++-- Makefile.AmigaOS-newlib | 27 ++++++++++++++++++++++++--- 2 files changed, 27 insertions(+), 5 deletions(-) diff --git a/Makefile.AmigaOS b/Makefile.AmigaOS index 6a07c4d..88bb47d 100644 --- a/Makefile.AmigaOS +++ b/Makefile.AmigaOS @@ -11,7 +11,7 @@ AR = ar ARFLAGS = cr STRIP = strip -R.comment -LIBNAME = lib/libagg.a +LIBNAME = lib/libagg-clib2.a SVGNAME = bin/svg_test EXAMPLES =\ @@ -171,7 +171,7 @@ clean: -@Delete *>NIL: FORCE QUIET examples/#?.o -@Delete *>NIL: FORCE QUIET $(PLATFORM_OBJ) $(FREETYPE_OBJ) $(LIB_OBJ) $(SVG_OBJ) -@copy CLONE ALL bin/#?.cmake#? T:agg_tmp - -@Delete *>NIL: FORCE QUIET ALL lib bin + -@Delete *>NIL: FORCE QUIET ALL bin -@copy CLONE T:agg_tmp/#? bin install: lib @@ -388,3 +388,4 @@ wget: %.o: %.c @MakeDir lib bin force $(CC) -c $(CFLAGS) $< -o $@ + diff --git a/Makefile.AmigaOS-newlib b/Makefile.AmigaOS-newlib index eb0ce5a..2041571 100644 --- a/Makefile.AmigaOS-newlib +++ b/Makefile.AmigaOS-newlib @@ -12,7 +12,7 @@ AR = ar ARFLAGS = cr STRIP = strip -R.comment -LIBNAME = lib/libagg.a +LIBNAME = lib/libagg-newlib.a SVGNAME = bin/svg_test EXAMPLES =\ @@ -156,6 +156,7 @@ help: @Echo clean - clean all build files @Echo install - build AGG library and install into SDK @Echo wget - download and install example test files with wget + @Echo release - prepare a release package for SDK all: lib examples svg freetype $(STRIP) $(EXAMPLES) $(SVGNAME) $(FREETYPE_EXAMPLES) @@ -172,14 +173,33 @@ clean: -@Delete *>NIL: FORCE QUIET examples/#?.o -@Delete *>NIL: FORCE QUIET $(PLATFORM_OBJ) $(FREETYPE_OBJ) $(LIB_OBJ) $(SVG_OBJ) -@copy CLONE ALL bin/#?.cmake#? T:agg_tmp - -@Delete *>NIL: FORCE QUIET ALL lib bin + -@Delete *>NIL: FORCE QUIET ALL bin -@copy CLONE T:agg_tmp/#? bin install: lib -@Copy CLONE $(LIBNAME) SDK:Local/newlib/lib -@Copy CLONE ALL include/#?.h SDK:Local/common/include/agg -@Copy CLONE ALL gpc/#?.h SDK:Local/common/include/gpc - + +release: + -@mkdir -p release/libagg/local/clib2/lib + -@mkdir -p release/libagg/local/newlib/lib + -@mkdir -p release/libagg/local/Documentation/libagg + -@mkdir -p release/libagg/local/common/libagg + -@mkdir -p release/libagg/local/examples/libagg + -@cp AUTHORS release/libagg/local/Documentation/libagg/ + -@cp copying release/libagg/local/Documentation/libagg/ + -@cp README release/libagg/local/Documentation/libagg/ + -@cp lib/libagg-clib2.a release/libagg/local/clib2/lib/libagg.a + -@cp lib/libagg-newlib.a release/libagg/local/newlib/lib/libagg.a + -@cp -r include/* release/libagg/local/common/libagg/ + -@cp -r examples/* release/libagg/local/examples/libagg/ + -@Delete *>NIL: FORCE QUIET ALL release/libagg/local/examples/libagg/BeOS + -@Delete *>NIL: FORCE QUIET ALL release/libagg/local/examples/libagg/macos#? + -@Delete *>NIL: FORCE QUIET ALL release/libagg/local/examples/libagg/win32#? + -@Delete *>NIL: FORCE QUIET ALL release/libagg/local/examples/libagg/X11 + -@lha -aeqr3 a libagg.lha release/ + $(LIBNAME): $(LIB_OBJ) $(AR) $(ARFLAGS) $@ $^ @@ -389,3 +409,4 @@ wget: %.o: %.c @MakeDir lib bin force $(CC) -c $(CFLAGS) $< -o $@ +