Groups | Search | Server Info | Login | Register
| Newsgroups | comp.os.cpm |
|---|---|
| Date | 2013-09-04 02:10 -0700 |
| References | <dfb449e3-9f90-421c-afa5-692e0cafab09@googlegroups.com> |
| Message-ID | <7642c366-22bd-4075-8a42-601a2e99d263@googlegroups.com> (permalink) |
| Subject | Re: much enhanced z-80 assembler now available |
| From | Tesseract <guard.squeeze.8421@gmail.com> |
# Generate zmac on *nix # # There is a bit of a problem with the files as distributed in that zmac.y # and mio.c are stored in the .zip file with UPPER CASE names. That doesn't # matter on Windows but it can be annoying on UNIX systems. # # This Makefile assumes the names are lower case. # # A refresher for those (like me) who can't remember all the intricacies: # # $@ represents the target of the current rule # $< is the input file # Names for the tools used herein. Probably redundant but the documentation # for gmake recommends this practice. BISON= bison CC = /usr/bin/gcc # Directories in the source tree. Note that $(Z80D) is the current directory # when this Makefile is invoked. LIBD = lib/zi80 Z80D = trs80/sdk/src/zmac TOPD = ../../../.. # File extensions. .o is common on *NIX whereas .obj is more frequently # used on Windows, MS-DOS and OS/2. The suffix for executable files should # be empty on *nix but probably .exe on most other platforms. O = o E = PIECES = doc.$O mio.$O zmac.$O \ $(TOPD)/$(LIBD)/zi80dis.cpp # Primary targets all : $(TOPD)/zmac$E clean : rm -f *.o doc$E doc.inl zmac.c # Secondary targets $(TOPD)/zmac$E : $(PIECES) $(TOPD)/$(LIBD)/zi80dis.h $(CC) -o$@ $(PIECES) # This is a bit strange. When doc.c compiled to an executable with MK_DOC # defined then it can be run to generate doc.inl which is used when doc.c is # recompiled without MK_DOC. The source for doc.c indicates that it expects # to find the files doc.txt and doc.inl in the current directory. # # Putting generated files in the source directory is bad form but lots of # Makefiles do it and it is too hard to change given the presence of hard- # coded relative paths in some of the sources. doc$E : doc.c $(CC) -o$@ -DMK_DOC $< doc.inl : doc$E doc.txt ./doc$E >/dev/nul # Intermediates # The generated code (by bison from zmac.y) has a hard-coded relative path # to zi80dis.h. That is the ONLY reason we have to run from the lowest # level directory in the source tree. zmac.o : zmac.c $(CC) -c -o$@ $< zmac.c : zmac.y $(BISON) --output=$@ $< doc.$O : doc.c doc.inl $(CC) -I. -c -o$@ $< mio.$O : mio.c $(CC) -c -o$@ $<
Back to comp.os.cpm | Previous | Next — Previous in thread | Next in thread | Find similar
much enhanced z-80 assembler now available tburnxxx@gmail.com - 2013-09-03 08:49 -0700
Re: much enhanced z-80 assembler now available rzh_nocal@yahoo.com - 2013-09-03 12:02 -0700
Re: much enhanced z-80 assembler now available tburnxxx@gmail.com - 2013-09-03 12:17 -0700
Re: much enhanced z-80 assembler now available tburnxxx@gmail.com - 2013-09-03 17:20 -0700
Re: much enhanced z-80 assembler now available "dott.Piergiorgio" <chiedetelo@ask.me> - 2013-09-04 06:11 +0200
Re: much enhanced z-80 assembler now available tburnxxx@gmail.com - 2013-09-03 19:01 -0700
Re: much enhanced z-80 assembler now available Steve Nickolas <usotsuki@buric.co> - 2013-09-04 09:28 +0000
Re: much enhanced z-80 assembler now available Steven Hirsch <snhirsch@gmail.com> - 2013-09-03 21:27 -0400
Re: much enhanced z-80 assembler now available tburnxxx@gmail.com - 2013-09-03 18:50 -0700
Re: much enhanced z-80 assembler now available Steve Nickolas <usotsuki@buric.co> - 2013-09-04 09:22 +0000
Re: much enhanced z-80 assembler now available Peter Dassow <z80eu@arcor.de> - 2013-09-04 11:29 +0200
Re: much enhanced z-80 assembler now available Steven Hirsch <snhirsch@gmail.com> - 2013-09-04 09:05 -0400
Re: much enhanced z-80 assembler now available tburnxxx@gmail.com - 2013-09-04 08:01 -0700
Re: much enhanced z-80 assembler now available Steven Hirsch <snhirsch@gmail.com> - 2013-09-04 20:51 -0400
Re: much enhanced z-80 assembler now available tburnxxx@gmail.com - 2013-09-05 05:14 -0700
Re: much enhanced z-80 assembler now available Steve Nickolas <usotsuki@buric.co> - 2013-09-05 16:55 +0000
Re: much enhanced z-80 assembler now available Steven Hirsch <snhirsch@gmail.com> - 2013-09-05 18:12 -0400
Re: much enhanced z-80 assembler now available bill@server3.cs.uofs.edu (Bill Gunshannon) - 2013-09-06 10:32 +0000
Re: much enhanced z-80 assembler now available Steven Hirsch <snhirsch@gmail.com> - 2013-09-06 07:50 -0400
Re: much enhanced z-80 assembler now available bill@server3.cs.uofs.edu (Bill Gunshannon) - 2013-09-06 12:21 +0000
Re: much enhanced z-80 assembler now available "dott.Piergiorgio" <chiedetelo@ask.me> - 2013-09-06 18:18 +0200
Re: much enhanced z-80 assembler now available Steven Hirsch <snhirsch@gmail.com> - 2013-09-06 18:10 -0400
Re: much enhanced z-80 assembler now available Tesseract <guard.squeeze.8421@gmail.com> - 2013-09-04 19:28 -0700
Re: much enhanced z-80 assembler now available gp2k00@gmail.com - 2013-09-04 21:56 -0700
Re: much enhanced z-80 assembler now available rzh_nocal@yahoo.com - 2013-09-03 21:05 -0700
Re: much enhanced z-80 assembler now available Tesseract <guard.squeeze.8421@gmail.com> - 2013-09-04 02:10 -0700
Re: much enhanced z-80 assembler now available drb@ihatespam.msu.edu (Dennis Boone) - 2013-09-04 11:53 -0500
Re: much enhanced z-80 assembler now available tburnxxx@gmail.com - 2013-09-04 13:09 -0700
Re: much enhanced z-80 assembler now available Torfinn Ingolfsen <tingo@home.no> - 2013-09-07 22:43 +0200
Re: much enhanced z-80 assembler now available gp2k00@gmail.com - 2013-09-07 21:15 -0700
Re: much enhanced z-80 assembler now available Torfinn Ingolfsen <tingo@home.no> - 2013-09-08 11:53 +0200
Re: much enhanced z-80 assembler now available Torfinn Ingolfsen <tingo@home.no> - 2013-09-08 12:31 +0200
Re: much enhanced z-80 assembler now available tburnxxx@gmail.com - 2013-09-08 03:57 -0700
Re: much enhanced z-80 assembler now available Torfinn Ingolfsen <tingo@home.no> - 2013-09-08 16:21 +0200
Re: much enhanced z-80 assembler now available tburnxxx@gmail.com - 2013-09-08 07:46 -0700
Re: much enhanced z-80 assembler now available gp2k00@gmail.com - 2013-09-18 09:59 -0700
csiph-web