blob: a507c9e59602c5c79652a53076418151d3fe1616 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
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)
|