-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
69 lines (54 loc) · 1.88 KB
/
makefile
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
67
68
69
# Main makefile
PROJ_ROOT = $(PWD)
CCPATH = /opt/Amiga
CC = $(CCPATH)/bin/m68k-amigaos-gcc
CXX = $(CCPATH)/bin/m68k-amigaos-g++
AR = $(CCPATH)/bin/m68k-amigaos-ar
NM = $(CCPATH)/bin/m68k-amigaos-nm
RANLIB = $(CCPATH)/bin/m68k-amigaos-ranlib
LD = $(CCPATH)/bin/m68k-amigaos-gcc
SHELL = sh
XDFTOOL = /usr/local/bin/xdftool
SFDC = /Users/heiko/Downloads/sfdc/sfdc-mastersfdc
AMIGA_EXPLORER = $(PWD)/tools/lxamiga.pl
ADFIMAGE := $(PROJ_ROOT)/build/Amiga1200+i2c.adf
CFLAGS += -Os \
-I../include \
-fstrength-reduce \
$(INC_SRCH_PATH) \
-Wstrict-prototypes \
-noixemul \
-Wall \
-m68$(ARCH) \
-fomit-frame-pointer \
-msoft-float \
-Wno-pointer-sign
LDFLAGS += -Llibs -noixemul
#If not given via command line, build for "68000"
ifeq ($(ARCH),)
ARCH=000
endif
BUILDDIR := build
export CCPATH CC LD CXX CFLAGS LDFLAGS RANLIB AR LD AOS_INCLUDES OS_INCLUDES CFLAGS ARCH PROJ_ROOT XDFTOOL AMIGA_EXPLORER NM ADFIMAGE SFDC
.PHONY: install clean all debug createDistribution
# Release version: make
all: CFLAGS += -s
all: LDFLAGS += -s
all:
@$(MAKE) -C library
@$(MAKE) -C unittest
@#@$(MAKE) createDistribution
# Debug version: make debug
debug: CFLAGS += -DDEBUG -g
debug:
@$(MAKE) -C library
@$(MAKE) -C unittest
install:
@$(MAKE) -C library install
clean:
@$(MAKE) -C library clean
rm -f $(ADFIMAGE)
createDistribution:
#@$(XDFTOOL) $(ADFIMAGE) write DistributionTemplate/install
#@$(XDFTOOL) $(ADFIMAGE) write DistributionTemplate/install.info
#@$(XDFTOOL) $(ADFIMAGE) list