diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2012-07-06 20:12:16 +0100 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2012-07-06 20:12:16 +0100 |
commit | c951341c29ef36bfeed9e5c68613f95bc33f1f0f (patch) | |
tree | d0585b7ab01b7218288edae7c93f1468d210245b /amiga_lib/Makefile.lib | |
parent | b20ec087e0c528a1b9a76b7887023d6da50bac47 (diff) | |
download | libhubbub-c951341c29ef36bfeed9e5c68613f95bc33f1f0f.tar.gz libhubbub-c951341c29ef36bfeed9e5c68613f95bc33f1f0f.tar.bz2 |
Amiga .library wrapper for hubbub
Diffstat (limited to 'amiga_lib/Makefile.lib')
-rwxr-xr-x | amiga_lib/Makefile.lib | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/amiga_lib/Makefile.lib b/amiga_lib/Makefile.lib new file mode 100755 index 0000000..a507c9e --- /dev/null +++ b/amiga_lib/Makefile.lib @@ -0,0 +1,66 @@ +# Makefile for project "parserutils" +# Automatically generated by idltool +# +# $Id$ +# + +# Uncomment the next line if you are cross compiling +# CROSS_COMPILE = ppc-amigaos- + +CC = $(CROSS_COMPILE)gcc +CXX = $(CROSS_COMPILE)c++ +AS = $(CROSS_COMPILE)as +LD = $(CROSS_COMPILE)ld +RANLIB = $(CROSS_COMPILE)ranlib +RM = delete +# RM = rm + +# Change these as required +OPTIMIZE = -O3 +DEBUG = # -gstabs -DDEBUG +CFLAGS = -Wall $(OPTIMIZE) $(DEBUG) -Iinclude -I../include + +# Flags passed to gcc during linking +LINK = + +# Name of the "thing" to build +TARGET = hubbub.library + +# Additional linker libraries +LIBS = ../build-Amiga-Amiga-release-lib-static/libhubbub.a -lparserutils + +# Version of the library to build +VERSION = 2 + +STUBS = stubs/auto.c stubs/funcs.c + +# ------------------------------------------------------------- +# Nothing should need changing below this line + +SRCS = init.c + +OBJS = $(SRCS:.c=.o) +# Rules for building +$(TARGET): $(OBJS) + $(CC) $(LINK) -nostartfiles -o $(TARGET) $(OBJS) $(LIBS) + strip $(TARGET) + copy $(TARGET) libs: + +libhubbub.so: $(STUBS:.c=.o) + $(CC) -N -fPIC -shared -Wl,-soname,libhubbub.so.0 -o $@ $^ + +libhubbub.a: libhubbub.a.debug + strip -S -R.comment $< -o $@ + +libhubbub.a.debug: $(STUBS:.c=.o) + rm -f $@ + ar cru $@ $^ + +.PHONY: clean +clean: + $(RM) $(TARGET) $(OBJS) + +.PHONY: revision +revision: + bumprev $(VERSION) $(TARGET) + |