diff options
author | H. Peter Anvin <hpa@zytor.com> | 2006-03-11 07:46:53 +0000 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2006-03-11 07:46:53 +0000 |
commit | 781045be55cc20cf9d9150a761450f003867ff7c (patch) | |
tree | 04ec2a6d4c08c41e2e06515a9f8a8fbafeb393fe /tools/z80asm/Makefile | |
parent | 7ae535589fbde4cec35ec39a5c38c8e773964e36 (diff) | |
download | abc80-781045be55cc20cf9d9150a761450f003867ff7c.tar.gz abc80-781045be55cc20cf9d9150a761450f003867ff7c.tar.xz abc80-781045be55cc20cf9d9150a761450f003867ff7c.zip |
Add files for Z80 assembler
Diffstat (limited to 'tools/z80asm/Makefile')
-rw-r--r-- | tools/z80asm/Makefile | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/tools/z80asm/Makefile b/tools/z80asm/Makefile new file mode 100644 index 0000000..75c8011 --- /dev/null +++ b/tools/z80asm/Makefile @@ -0,0 +1,40 @@ +# Makefile for the Z80 assembler by shevek +# Copyright (C) 2002,2004 Bas Wijnen +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +CC = gcc +LDFLAGS = -g -O2 -Wall +CFLAGS = -g -O2 -Wall -Wwrite-strings -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Winline -pedantic -ansi -Wshadow -g -W -Ignulib + +all:z80asm + +z80asm:z80asm.c Makefile gnulib/getopt.o gnulib/getopt1.o + $(CC) $(CFLAGS) $(LDFLAGS) $< gnulib/getopt.o gnulib/getopt1.o -o $@ + +gnulib/%.o:gnulib/%.c gnulib/getopt.h Makefile + $(CC) $(CFLAGS) -c $< -o $@ + +clean: + for i in . gnulib ; do \ + rm -f $$i/a.bin $$i/a.out $$i/core $$i/*~ $$i/\#* $$i/*.o ; \ + done + rm -f z80asm z80asm.exe + +dist: clean + rm -rf /tmp/z80asm + tar cf - -C .. z80asm | tar xf - -C /tmp + find /tmp/z80asm -name CVS | xargs rm -rf + tar cvzf ../z80asm-`date +%Y%m%d`00.tar.gz -C /tmp z80asm |