Files
RomWBW/Tools/unix/zxcc/Makefile
Wayne Warthen d241db5c11 Makefile Improvements
The clobber target has been removed and the clean target now does what most people would expect (actually cleans the entire build tree).
2022-07-06 16:39:03 -07:00

38 lines
663 B
Makefile

#
# hacked up brute force makefile for linux and osx
#
UNAME := $(shell uname)
ifeq ($(UNAME), Linux)
SUFFIX=linux
endif
ifeq ($(UNAME), Darwin)
SUFFIX=darwin
endif
DEST = ../../$(UNAME)
CFLAGS = -g # -DDEBUG
OBJECTS = zxcc.o cpmdrv.o cpmglob.o cpmparse.o cpmredir.o \
drdos.o util.o xlt.o zxbdos.o zxcbdos.o zxdbdos.o z80.o track.o
UNUSED = dirent.o
all: zxcc $(DEST)
cp -p bios.bin zxcc $(DEST)
$(DEST):
mkdir -p $(DEST)
clean:
-rm -f $(OBJECTS) config.h zxcc bios.bin
$(OBJECTS): config.h bios.bin
zxcc: $(OBJECTS)
$(CC) -o zxcc $(OBJECTS)
config.h: config.h.$(SUFFIX)
cp config.h.$(SUFFIX) config.h
bios.bin: cpm/bios.bin
cp cpm/bios.bin .