-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
40 lines (31 loc) · 1 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
#
# Makefile for netusbee.prg
#
# Copyright (c) 2018 Roger Burrows
#
# This file is distributed under the GPL, version 2 or at your
# option any later version. See doc/license.txt for details.
#
TARGET = netusbee.prg
TARGETST = netusbst.prg
LIBS = libcmini.a -nostdlib -lgcc
CC = m68k-atari-mint-gcc
LD = $(CC)
CPPFLAGS =
CFLAGS = $(CPPFLAGS) -m68000 -mshort -O2 -Wall -Wundef -Wold-style-definition -fomit-frame-pointer -Iinclude
.PHONY: default all clean
default: all
all: $(TARGET) $(TARGETST)
COMMONOBJS = netusbee_int.o delayasm.o delay.o
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
%.o: %.S
$(CC) $(CFLAGS) -c $< -o $@
isp116x-hcd_st.o: isp116x-hcd.c
$(CC) -DSLOW_MACHINE $(CFLAGS) -c $< -o $@
$(TARGET): isp116x-hcd.o $(COMMONOBJS)
$(LD) startup.o isp116x-hcd.o $(COMMONOBJS) $(LIBS) -nostartfiles -s -o $@
$(TARGETST): isp116x-hcd_st.o $(COMMONOBJS)
$(LD) startup.o isp116x-hcd_st.o $(COMMONOBJS) $(LIBS) -nostartfiles -s -o $@
clean:
-rm -f $(TARGET) $(TARGETST) $(COMMONOBJS) isp116x-hcd.o isp116x-hcd_st.o