-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile.mos
35 lines (26 loc) · 1007 Bytes
/
makefile.mos
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
# Makefile for MorphOS using gcc
PROJECT = ahx
BASE = build/mos
C_COMPILER = gcc
C_COMPILER_OPTS = -c -DHW_AMIGA -DHW_MORPHOS -O2 -Wall -Wno-pointer-sign -noixemul -I../SDK/include
LINKER = gcc
LINKER_OPTS = -nostartfiles -noixemul
LINKER_LIBS = -lc -lmath
OBJECTS = \
$(BASE)/amigaentry.o \
$(BASE)/purefuncs.o \
$(BASE)/replayer.o \
$(BASE)/plugin.o
$(BASE)/%.o: src/%.c
$(C_COMPILER) -o $@ $(C_COMPILER_OPTS) src/$*.c
$(PROJECT): $(OBJECTS)
$(LINKER) $(LINKER_OPTS) -o $(BASE)/$(PROJECT).hwp $(OBJECTS) $(LINKER_LIBS)
strip --remove-section .comment $(BASE)/$(PROJECT).hwp
copy $(BASE)/$(PROJECT).hwp LIBS:Hollywood
clean:
delete $(BASE)/#?.o
delete $(BASE)/#?.hwp
$(BASE)/amigaentry.o: src/amigaentry.c src/common/version.h
$(BASE)/purefuncs.o: src/purefuncs.c src/common/version.h src/common/purefuncs.h
$(BASE)/replayer.o: src/replayer.c src/common/version.h src/replayer.h src/common/purefuncs.h
$(BASE)/plugin.o: src/plugin.c src/common/version.h src/common/purefuncs.h