home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / EXTRA-ST / CPM-80-E / CPM-0.2 / CPM-0 / cpm-0.2 / z80-sources / mylib / Makefile < prev    next >
Encoding:
Makefile  |  1994-06-06  |  1.0 KB  |  51 lines

  1. # Makefile to rebuild my Assembler Library
  2.  
  3. TARGETS = mylib.rel
  4.  
  5. MOBJS=open.rel close.rel sectorio.rel setupfcb.rel fileprnt.rel printf.rel \
  6.   scanf.rel params.rel biosio.rel bdosio.rel prmes.rel version.rel exmem.rel \
  7.   cpmem.rel bioscall.rel multa.rel adda.rel div16.rel maxmem.rel
  8.  
  9.  
  10. XOBJS=chario.rel clib.rel diskio2.rel longs.rel stdio.rel print.rel \
  11.   screen.rel strings.rel windows.rel
  12.  
  13. COBJS=format.rel tinyfmt.rel fopen.rel
  14.  
  15. OBJS=adda.rel bdosio.rel bioscall.rel biosio.rel \
  16.   close.rel cpmem.rel div16.rel \
  17.   exmem.rel fileprnt.rel files.rel maxmem.rel \
  18.   multa.rel open.rel params.rel printf.rel prmes.rel \
  19.   scanf.rel sectorio.rel setupfcb.rel version.rel
  20.  
  21.  
  22. ASM=cpm m80
  23. LNK=cpm l80
  24. CC =cpm cii
  25. CFLAGS = -m -z4000 -e100
  26.  
  27. %.rel: %.mmc
  28.     cpm libutl $<
  29.     cpm xccp libtmp
  30.     rm libtmp.sub
  31.  
  32. %.rel: %.mac
  33.     $(ASM) =$<
  34.  
  35. %.com: %.rel
  36.     $(LNK) $<,$</n/e
  37.  
  38. %.asm: %.c
  39.     $(CC) $(CFLAGS) $<
  40.  
  41. %.rel: %.asm
  42.     $(ASM) =$<
  43.  
  44. all: $(TARGETS)
  45.  
  46. clean:
  47.     rm -f *~ *.rel $(TARGETS) *.asm
  48.  
  49. mylib.rel: $(MOBJS) # $(XOBJS) $(COBJS)
  50.     cpm xccp makelib
  51.