summaryrefslogtreecommitdiff
path: root/amiga_lib/Makefile.lib
diff options
context:
space:
mode:
Diffstat (limited to 'amiga_lib/Makefile.lib')
-rwxr-xr-xamiga_lib/Makefile.lib66
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)
+