Added some changes and added release rule
This commit is contained in:
parent
1ea55036a3
commit
61eaa8e3e3
|
@ -11,7 +11,7 @@ AR = ar
|
||||||
ARFLAGS = cr
|
ARFLAGS = cr
|
||||||
STRIP = strip -R.comment
|
STRIP = strip -R.comment
|
||||||
|
|
||||||
LIBNAME = lib/libagg.a
|
LIBNAME = lib/libagg-clib2.a
|
||||||
SVGNAME = bin/svg_test
|
SVGNAME = bin/svg_test
|
||||||
|
|
||||||
EXAMPLES =\
|
EXAMPLES =\
|
||||||
|
@ -171,7 +171,7 @@ clean:
|
||||||
-@Delete *>NIL: FORCE QUIET examples/#?.o
|
-@Delete *>NIL: FORCE QUIET examples/#?.o
|
||||||
-@Delete *>NIL: FORCE QUIET $(PLATFORM_OBJ) $(FREETYPE_OBJ) $(LIB_OBJ) $(SVG_OBJ)
|
-@Delete *>NIL: FORCE QUIET $(PLATFORM_OBJ) $(FREETYPE_OBJ) $(LIB_OBJ) $(SVG_OBJ)
|
||||||
-@copy CLONE ALL bin/#?.cmake#? T:agg_tmp
|
-@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
|
-@copy CLONE T:agg_tmp/#? bin
|
||||||
|
|
||||||
install: lib
|
install: lib
|
||||||
|
@ -388,3 +388,4 @@ wget:
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
@MakeDir lib bin force
|
@MakeDir lib bin force
|
||||||
$(CC) -c $(CFLAGS) $< -o $@
|
$(CC) -c $(CFLAGS) $< -o $@
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ AR = ar
|
||||||
ARFLAGS = cr
|
ARFLAGS = cr
|
||||||
STRIP = strip -R.comment
|
STRIP = strip -R.comment
|
||||||
|
|
||||||
LIBNAME = lib/libagg.a
|
LIBNAME = lib/libagg-newlib.a
|
||||||
SVGNAME = bin/svg_test
|
SVGNAME = bin/svg_test
|
||||||
|
|
||||||
EXAMPLES =\
|
EXAMPLES =\
|
||||||
|
@ -156,6 +156,7 @@ help:
|
||||||
@Echo clean - clean all build files
|
@Echo clean - clean all build files
|
||||||
@Echo install - build AGG library and install into SDK
|
@Echo install - build AGG library and install into SDK
|
||||||
@Echo wget - download and install example test files with wget
|
@Echo wget - download and install example test files with wget
|
||||||
|
@Echo release - prepare a release package for SDK
|
||||||
|
|
||||||
all: lib examples svg freetype
|
all: lib examples svg freetype
|
||||||
$(STRIP) $(EXAMPLES) $(SVGNAME) $(FREETYPE_EXAMPLES)
|
$(STRIP) $(EXAMPLES) $(SVGNAME) $(FREETYPE_EXAMPLES)
|
||||||
|
@ -172,7 +173,7 @@ clean:
|
||||||
-@Delete *>NIL: FORCE QUIET examples/#?.o
|
-@Delete *>NIL: FORCE QUIET examples/#?.o
|
||||||
-@Delete *>NIL: FORCE QUIET $(PLATFORM_OBJ) $(FREETYPE_OBJ) $(LIB_OBJ) $(SVG_OBJ)
|
-@Delete *>NIL: FORCE QUIET $(PLATFORM_OBJ) $(FREETYPE_OBJ) $(LIB_OBJ) $(SVG_OBJ)
|
||||||
-@copy CLONE ALL bin/#?.cmake#? T:agg_tmp
|
-@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
|
-@copy CLONE T:agg_tmp/#? bin
|
||||||
|
|
||||||
install: lib
|
install: lib
|
||||||
|
@ -180,6 +181,25 @@ install: lib
|
||||||
-@Copy CLONE ALL include/#?.h SDK:Local/common/include/agg
|
-@Copy CLONE ALL include/#?.h SDK:Local/common/include/agg
|
||||||
-@Copy CLONE ALL gpc/#?.h SDK:Local/common/include/gpc
|
-@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)
|
$(LIBNAME): $(LIB_OBJ)
|
||||||
$(AR) $(ARFLAGS) $@ $^
|
$(AR) $(ARFLAGS) $@ $^
|
||||||
|
|
||||||
|
@ -389,3 +409,4 @@ wget:
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
@MakeDir lib bin force
|
@MakeDir lib bin force
|
||||||
$(CC) -c $(CFLAGS) $< -o $@
|
$(CC) -c $(CFLAGS) $< -o $@
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue