You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

37 lines
637 B

#
# 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 = zx.o cpmdrv.o cpmglob.o cpmparse.o cpmredir.o \
drdos.o util.o xlt.o zxbdos.o zxcbdos.o zxdbdos.o z80.o
UNUSED = dirent.o
all: zx $(DEST)
cp -p bios.bin zx $(DEST)
$(DEST):
mkdir -p $(DEST)
clean:
-rm -f $(OBJECTS) config.h zx
clobber: clean
-rm -f $(DEST)/zx $(DEST)/bios.bin zx
$(OBJECTS): config.h
zx: $(OBJECTS)
$(CC) -o zx $(OBJECTS)
config.h: config.h.$(SUFFIX)
cp config.h.$(SUFFIX) config.h