summaryrefslogtreecommitdiff
path: root/sys/arch/amiga/stand/loadbsd/Makefile
blob: bf93cb95b8c2fd8aadc878f60bab2a5c991a6aaa (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
#	$OpenBSD: Makefile,v 1.4 1999/09/09 21:25:13 espie Exp $

CC = gcc
CFLAGS = -m68030 -Wall -O3 -fomit-frame-pointer -D__progname=program_name -msmall-code -resident 

OBJS1 = loadbsd.o poolmem.o getopt.o sleep.o vers.o openlibs_stub.o
OBJS2 = loadbsd.o poolmem.o vers_ixemul.o openlibs_ixemul.o
PROGS=loadbsd loadbsd.ixemul

# add -lamiga if you can't get inlines to work
LIBS = 
LDFLAGS=-s

all: $(PROGS) distrib

loadbsd: $(OBJS1)
	$(CC) $(CFLAGS) $(LDFLAGS) -noixemul -o loadbsd $(OBJS1) $(LIBS)

loadbsd.ixemul: $(OBJS2)
	$(CC) $(CFLAGS) $(LDFLAGS) -o loadbsd.ixemul $(OBJS2) $(LIBS)

distrib: loadbsd
	gzip -c loadbsd >loadbsd.gz
	echo loadbsd built on `date` with gcc `gcc -dumpversion` >loadbsd.gz.uu
	uuencode loadbsd.gz loadbsd.gz >>loadbsd.gz.uu

clean:
	-rm $(OBJS1) $(OBJS2) $(PROGS)