From c951341c29ef36bfeed9e5c68613f95bc33f1f0f Mon Sep 17 00:00:00 2001 From: Chris Young Date: Fri, 6 Jul 2012 20:12:16 +0100 Subject: Amiga .library wrapper for hubbub --- amiga_lib/Makefile.lib | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100755 amiga_lib/Makefile.lib (limited to 'amiga_lib/Makefile.lib') 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) + -- cgit v1.2.3