Files
PX4-Autopilot/misc/sims/z80sim/src/Makefile
T
patacongo 57623d42eb Resync new repository with old repo r5166
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5153 42af7a65-404d-4744-a932-0658087f49c3
2012-09-17 18:18:44 +00:00

40 lines
629 B
Makefile

Z80SITE = http://fms.komkon.org/EMUL8
Z80SOURCE = Z80-081707.zip
Z80UNZIP = /usr/bin/unzip
Z80WGET = /usr/bin/wget
CC = gcc
CFLAGS = -g -Wall -IZ80 -DLSB_FIRST=1 -DDEBUG=1 -DJUMPZ80
LD = gcc
LDFLAGS =
SRCS = main.c Debug.c Z80.c
OBJS = $(SRCS:.c=.o)
BIN = z80sim
VPATH = Z80
all: $(BIN)
default: $(BIN)
$(OBJS): %.o: %.c
$(CC) -c $(CFLAGS) $< -o $@
Z80-081707.zip:
$(Z80WGET) $(Z80SITE)/$(Z80SOURCE)
Z80: Z80-081707.zip
$(Z80UNZIP) Z80-081707.zip
z80sim: Z80 $(OBJS)
$(LD) $(LDFLAGS) $(OBJS) -o $@
clean:
@rm -f $(BIN) *.o *.rel *.asm *.lst *.sym *.adb *~
distclean: clean
rm -rf Z80 Z80-081707.zip