1
0
mirror of https://github.com/cc65/cc65.git synced 2025-08-08 06:25:17 +00:00

Make sure the zap target is available

git-svn-id: svn://svn.cc65.org/cc65/trunk@1932 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2003-02-06 15:35:30 +00:00
parent a5eefc2734
commit a8810a464d
20 changed files with 191 additions and 8 deletions

View File

@@ -28,6 +28,7 @@ ALLTARGETS = apple2 \
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
.PHONY: all
all: all:
for tgt in $(ALLTARGETS); do \ for tgt in $(ALLTARGETS); do \
$(MAKE) clean "$$tgt"lib || exit 1; \ $(MAKE) clean "$$tgt"lib || exit 1; \
@@ -246,10 +247,15 @@ plus4lib:
.PHONY: clean .PHONY: clean
clean: clean:
@for i in common conio dbg em joystick runtime tgi $(ALLTARGETS); do \ @for i in cbm common conio dbg em joystick runtime tgi $(ALLTARGETS); do\
$(MAKE) -C $$i clean; \ $(MAKE) -C $$i clean; \
done done
.PHONY: zap .PHONY: zap
zap: clean zap: clean
@for i in cbm common conio dbg em joystick runtime tgi $(ALLTARGETS); do\
$(MAKE) -C $$i zap; \
done
@rm -f *.o *.emd *.joy *.lib *.tgi @rm -f *.o *.emd *.joy *.lib *.tgi

View File

@@ -4,6 +4,9 @@
.SUFFIXES: .o .s .c .SUFFIXES: .o .s .c
#--------------------------------------------------------------------------
# Rules
%.o: %.c %.o: %.c
@$(CC) $(CFLAGS) $< @$(CC) $(CFLAGS) $<
@$(AS) -o $@ $(AFLAGS) $(*).s @$(AS) -o $@ $(AFLAGS) $(*).s
@@ -11,9 +14,10 @@
%.o: %.s %.o: %.s
@$(AS) -g -o $@ $(AFLAGS) $< @$(AS) -g -o $@ $(AFLAGS) $<
C_OBJS = #--------------------------------------------------------------------------
# Object files
S_OBJS= _scrsize.o \ OBJS= _scrsize.o \
break.o \ break.o \
cclear.o \ cclear.o \
cgetc.o \ cgetc.o \
@@ -32,9 +36,15 @@ S_OBJS= _scrsize.o \
where.o \ where.o \
write.o write.o
all: $(C_OBJS) $(S_OBJS) #--------------------------------------------------------------------------
# Targets
.PHONY: all clean zap
all: $(OBJS)
clean: clean:
@rm -f $(C_OBJS:.c=.s) $(C_OBJS) $(S_OBJS) @rm -f $(OBJS)
zap: clean

View File

@@ -105,3 +105,6 @@ all: $(OBJS) $(EMDS) $(JOYS) $(TGIS)
clean: clean:
@rm -f $(OBJS) $(EMDS:.emd=.o) $(JOYS:.joy=.o) $(TGIS:.tgi=.o) @rm -f $(OBJS) $(EMDS:.emd=.o) $(JOYS:.joy=.o) $(TGIS:.tgi=.o)
zap: clean
@rm -f $(EMDS) $(JOYS) $(TGIS)

View File

@@ -4,6 +4,9 @@
.SUFFIXES: .o .s .c .SUFFIXES: .o .s .c
#--------------------------------------------------------------------------
# Rules
%.o: %.c %.o: %.c
@$(CC) $(CFLAGS) $< @$(CC) $(CFLAGS) $<
@$(AS) -o $@ $(AFLAGS) $(*).s @$(AS) -o $@ $(AFLAGS) $(*).s
@@ -11,13 +14,23 @@
%.o: %.s %.o: %.s
@$(AS) -g -o $@ $(AFLAGS) $< @$(AS) -g -o $@ $(AFLAGS) $<
#--------------------------------------------------------------------------
# Object files
C_OBJS = C_OBJS =
S_OBJS = crt0.o \ S_OBJS = crt0.o \
systime.o systime.o
#--------------------------------------------------------------------------
# Targets
.PHONY: all clean zap
all: $(C_OBJS) $(S_OBJS) all: $(C_OBJS) $(S_OBJS)
clean: clean:
@rm -f $(C_OBJS:.c=.s) $(C_OBJS) $(S_OBJS) @rm -f $(C_OBJS:.c=.s) $(C_OBJS) $(S_OBJS)
zap: clean

View File

@@ -56,6 +56,8 @@ TGIS = c128-640-200-2.tgi c128-640-480-2.tgi
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
# Targets # Targets
.PHONY: all clean zap
all: $(OBJS) $(EMDS) $(JOYS) $(TGIS) all: $(OBJS) $(EMDS) $(JOYS) $(TGIS)
../runtime/zeropage.o: ../runtime/zeropage.o:
@@ -64,3 +66,6 @@ all: $(OBJS) $(EMDS) $(JOYS) $(TGIS)
clean: clean:
@rm -f $(OBJS) $(EMDS:.emd=.o) $(JOYS:.joy=.o) $(TGIS:.tgi=.o) @rm -f $(OBJS) $(EMDS:.emd=.o) $(JOYS:.joy=.o) $(TGIS:.tgi=.o)
zap: clean
@rm -f $(EMDS) $(JOYS) $(TGIS)

View File

@@ -53,6 +53,8 @@ TGIS =
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
# Targets # Targets
.PHONY: all clean zap
all: $(OBJS) $(EMDS) $(JOYS) $(TGIS) all: $(OBJS) $(EMDS) $(JOYS) $(TGIS)
../runtime/zeropage.o: ../runtime/zeropage.o:
@@ -61,4 +63,6 @@ all: $(OBJS) $(EMDS) $(JOYS) $(TGIS)
clean: clean:
@rm -f $(OBJS) $(EMDS:.emd=.o) $(JOYS:.joy=.o) $(TGIS:.tgi=.o) @rm -f $(OBJS) $(EMDS:.emd=.o) $(JOYS:.joy=.o) $(TGIS:.tgi=.o)
zap: clean
@rm -f $(EMDS) $(JOYS) $(TGIS)

View File

@@ -57,6 +57,8 @@ TGIS = c64-320-200-2.tgi
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
# Targets # Targets
.PHONY: all clean zap
all: $(OBJS) $(EMDS) $(JOYS) $(TGIS) all: $(OBJS) $(EMDS) $(JOYS) $(TGIS)
../runtime/zeropage.o: ../runtime/zeropage.o:
@@ -65,3 +67,6 @@ all: $(OBJS) $(EMDS) $(JOYS) $(TGIS)
clean: clean:
@rm -f $(OBJS) $(EMDS:.emd=.o) $(JOYS:.joy=.o) $(TGIS:.tgi=.o) @rm -f $(OBJS) $(EMDS:.emd=.o) $(JOYS:.joy=.o) $(TGIS:.tgi=.o)
zap: clean
@rm -f $(EMDS) $(JOYS) $(TGIS)

View File

@@ -4,6 +4,9 @@
.SUFFIXES: .o .s .c .SUFFIXES: .o .s .c
#--------------------------------------------------------------------------
# Rules
%.o: %.c %.o: %.c
@$(CC) $(CFLAGS) $< @$(CC) $(CFLAGS) $<
@$(AS) -o $@ $(AFLAGS) $(*).s @$(AS) -o $@ $(AFLAGS) $(*).s
@@ -11,6 +14,9 @@
%.o: %.s %.o: %.s
@$(AS) -g -o $@ $(AFLAGS) $< @$(AS) -g -o $@ $(AFLAGS) $<
#--------------------------------------------------------------------------
# Object files
C_OBJS = cbm_dir.o \ C_OBJS = cbm_dir.o \
cbm_load.o \ cbm_load.o \
cbm_save.o cbm_save.o
@@ -65,8 +71,15 @@ S_OBJS = c_acptr.o \
wherey.o \ wherey.o \
write.o write.o
#--------------------------------------------------------------------------
# Targets
.PHONY: all clean zap
all: $(C_OBJS) $(S_OBJS) all: $(C_OBJS) $(S_OBJS)
clean: clean:
@rm -f *~ *.bck $(C_OBJS:.o=.s) $(C_OBJS) $(S_OBJS) @rm -f *~ *.bck $(C_OBJS:.o=.s) $(C_OBJS) $(S_OBJS)
zap: clean

View File

@@ -63,6 +63,8 @@ EMDS = cbm510-ram.emd
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
# Targets # Targets
.PHONY: all clean zap
all: $(OBJS) $(EMDS) $(TGIS) all: $(OBJS) $(EMDS) $(TGIS)
../runtime/zeropage.o: ../runtime/zeropage.o:
@@ -71,3 +73,6 @@ all: $(OBJS) $(EMDS) $(TGIS)
clean: clean:
@rm -f $(OBJS) $(EMDS:.emd=.o) $(TGIS:.tgi=.o) @rm -f $(OBJS) $(EMDS:.emd=.o) $(TGIS:.tgi=.o)
zap: clean
@rm -f $(EMDS) $(JOYS) $(TGIS)

View File

@@ -53,6 +53,8 @@ EMDS = cbm610-ram.emd
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
# Targets # Targets
.PHONY: all clean zap
all: $(OBJS) $(EMDS) $(TGIS) all: $(OBJS) $(EMDS) $(TGIS)
../runtime/zeropage.o: ../runtime/zeropage.o:
@@ -61,3 +63,6 @@ all: $(OBJS) $(EMDS) $(TGIS)
clean: clean:
@rm -f $(OBJS) $(EMDS:.emd=.o) $(TGIS:.tgi=.o) @rm -f $(OBJS) $(EMDS:.emd=.o) $(TGIS:.tgi=.o)
zap: clean
@rm -f $(EMDS) $(TGIS)

View File

@@ -4,6 +4,9 @@
.SUFFIXES: .o .s .c .SUFFIXES: .o .s .c
#--------------------------------------------------------------------------
# Rules
%.o: %.c %.o: %.c
@$(CC) $(CFLAGS) $< @$(CC) $(CFLAGS) $<
@$(AS) -g -o $@ $(AFLAGS) $(*).s @$(AS) -g -o $@ $(AFLAGS) $(*).s
@@ -11,6 +14,9 @@
%.o: %.s %.o: %.s
@$(AS) -g -o $@ $(AFLAGS) $< @$(AS) -g -o $@ $(AFLAGS) $<
#--------------------------------------------------------------------------
# Object files
C_OBJS = _afailed.o \ C_OBJS = _afailed.o \
_hextab.o \ _hextab.o \
_scanf.o \ _scanf.o \
@@ -132,6 +138,11 @@ S_OBJS = _fdesc.o \
zerobss.o zerobss.o
#--------------------------------------------------------------------------
# Targets
.PHONY: all clean zap
all: $(C_OBJS) $(S_OBJS) all: $(C_OBJS) $(S_OBJS)
clean: clean:
@@ -140,3 +151,5 @@ clean:
@rm -f $(C_OBJS) @rm -f $(C_OBJS)
@rm -f $(S_OBJS) @rm -f $(S_OBJS)
zap: clean

View File

@@ -4,6 +4,9 @@
.SUFFIXES: .o .s .c .SUFFIXES: .o .s .c
#--------------------------------------------------------------------------
# Rules
%.o: %.c %.o: %.c
@$(CC) $(CFLAGS) $< @$(CC) $(CFLAGS) $<
@$(AS) -o $@ $(AFLAGS) $(*).s @$(AS) -o $@ $(AFLAGS) $(*).s
@@ -11,6 +14,9 @@
%.o: %.s %.o: %.s
@$(AS) -g -o $@ $(AFLAGS) $< @$(AS) -g -o $@ $(AFLAGS) $<
#--------------------------------------------------------------------------
# Object files
OBJS = _cursor.o \ OBJS = _cursor.o \
cprintf.o \ cprintf.o \
cputhex.o \ cputhex.o \
@@ -19,7 +25,15 @@ OBJS = _cursor.o \
scrsize.o \ scrsize.o \
vcprintf.o vcprintf.o
#--------------------------------------------------------------------------
# Targets
.PHONY: all clean zap
all: $(OBJS) all: $(OBJS)
clean: clean:
@rm -f *~ $(OBJS) @rm -f *~ $(OBJS)
zap: clean

View File

@@ -4,6 +4,9 @@
.SUFFIXES: .o .s .c .SUFFIXES: .o .s .c
#--------------------------------------------------------------------------
# Rules
%.o: %.c %.o: %.c
@$(CC) $(CFLAGS) $< @$(CC) $(CFLAGS) $<
@$(AS) -g -o $@ $(AFLAGS) $(*).s @$(AS) -g -o $@ $(AFLAGS) $(*).s
@@ -11,10 +14,18 @@
%.o: %.s %.o: %.s
@$(AS) -g -o $@ $(AFLAGS) $< @$(AS) -g -o $@ $(AFLAGS) $<
#--------------------------------------------------------------------------
# Object files
C_OBJS = dbg.o C_OBJS = dbg.o
S_OBJS = asmtab.o dbgdasm.o dbgdump.o dbgisram.o dbgsupp.o S_OBJS = asmtab.o dbgdasm.o dbgdump.o dbgisram.o dbgsupp.o
#--------------------------------------------------------------------------
# Targets
.PHONY: all clean zap
all: $(C_OBJS) $(S_OBJS) all: $(C_OBJS) $(S_OBJS)
clean: clean:
@@ -22,3 +33,6 @@ clean:
@rm -f $(C_OBJS:.o=.s) @rm -f $(C_OBJS:.o=.s)
@rm -f $(C_OBJS) @rm -f $(C_OBJS)
@rm -f $(S_OBJS) @rm -f $(S_OBJS)
zap: clean

View File

@@ -4,6 +4,9 @@
.SUFFIXES: .o .s .c .SUFFIXES: .o .s .c
#--------------------------------------------------------------------------
# Rules
%.o: %.c %.o: %.c
@$(CC) $(CFLAGS) $< @$(CC) $(CFLAGS) $<
@$(AS) -g -o $@ $(AFLAGS) $(*).s @$(AS) -g -o $@ $(AFLAGS) $(*).s
@@ -11,6 +14,9 @@
%.o: %.s %.o: %.s
@$(AS) -g -o $@ $(AFLAGS) $< @$(AS) -g -o $@ $(AFLAGS) $<
#--------------------------------------------------------------------------
# Object files
C_OBJS = em_load.o C_OBJS = em_load.o
S_OBJS = em-kernel.o \ S_OBJS = em-kernel.o \
@@ -20,9 +26,14 @@ S_OBJS = em-kernel.o \
em_map.o \ em_map.o \
em_pagecount.o \ em_pagecount.o \
em_unload.o \ em_unload.o \
em_use.o em_use.o
#--------------------------------------------------------------------------
# Targets
.PHONY: all clean zap
all: $(C_OBJS) $(S_OBJS) all: $(C_OBJS) $(S_OBJS)
clean: clean:
@@ -31,4 +42,5 @@ clean:
@rm -f $(C_OBJS) @rm -f $(C_OBJS)
@rm -f $(S_OBJS) @rm -f $(S_OBJS)
zap: clean

View File

@@ -4,6 +4,9 @@
.SUFFIXES: .o .s .c .SUFFIXES: .o .s .c
#--------------------------------------------------------------------------
# Rules
%.o: %.c %.o: %.c
@$(CC) $(CFLAGS) $< @$(CC) $(CFLAGS) $<
@$(AS) -g -o $@ $(AFLAGS) $(*).s @$(AS) -g -o $@ $(AFLAGS) $(*).s
@@ -11,6 +14,9 @@
%.o: %.s %.o: %.s
@$(AS) -g -o $@ $(AFLAGS) $< @$(AS) -g -o $@ $(AFLAGS) $<
#--------------------------------------------------------------------------
# Object files
C_OBJS = joy_load.o C_OBJS = joy_load.o
S_OBJS = joy-kernel.o \ S_OBJS = joy-kernel.o \
@@ -18,6 +24,10 @@ S_OBJS = joy-kernel.o \
joy_count.o \ joy_count.o \
joy_unload.o joy_unload.o
#--------------------------------------------------------------------------
# Targets
.PHONY: all clean zap
all: $(C_OBJS) $(S_OBJS) all: $(C_OBJS) $(S_OBJS)
@@ -27,4 +37,6 @@ clean:
@rm -f $(C_OBJS) @rm -f $(C_OBJS)
@rm -f $(S_OBJS) @rm -f $(S_OBJS)
zap: clean

View File

@@ -4,6 +4,9 @@
.SUFFIXES: .o .s .c .SUFFIXES: .o .s .c
#--------------------------------------------------------------------------
# Rules
%.o: %.c %.o: %.c
@$(CC) $(CFLAGS) $< @$(CC) $(CFLAGS) $<
@$(AS) -o $@ $(AFLAGS) $(*).s @$(AS) -o $@ $(AFLAGS) $(*).s
@@ -11,6 +14,9 @@
%.o: %.s %.o: %.s
@$(AS) -g -o $@ $(AFLAGS) $< @$(AS) -g -o $@ $(AFLAGS) $<
#--------------------------------------------------------------------------
# Object files
OBJS = _scrsize.o \ OBJS = _scrsize.o \
break.o \ break.o \
cgetc.o \ cgetc.o \
@@ -33,9 +39,17 @@ OBJS = _scrsize.o \
ksetlfs.o \ ksetlfs.o \
ksetnam.o \ ksetnam.o \
randomize.o \ randomize.o \
revers.o revers.o
#--------------------------------------------------------------------------
# Targets
.PHONY: all clean zap
all: $(OBJS) all: $(OBJS)
clean: clean:
@rm -f $(OBJS) @rm -f $(OBJS)
zap: clean

View File

@@ -76,6 +76,8 @@ TGIS =
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
# Targets # Targets
.PHONY: all clean zap
all: $(OBJS) $(EMDS) $(JOYS) $(TGIS) all: $(OBJS) $(EMDS) $(JOYS) $(TGIS)
../runtime/zeropage.o: ../runtime/zeropage.o:
@@ -84,3 +86,6 @@ all: $(OBJS) $(EMDS) $(JOYS) $(TGIS)
clean: clean:
@rm -f $(OBJS) $(EMDS:.emd=.o) $(JOYS:.joy=.o) $(TGIS:.tgi=.o) @rm -f $(OBJS) $(EMDS:.emd=.o) $(JOYS:.joy=.o) $(TGIS:.tgi=.o)
zap: clean
@rm -f $(EMDS) $(JOYS) $(TGIS)

View File

@@ -4,12 +4,18 @@
.SUFFIXES: .o .s .c .SUFFIXES: .o .s .c
#--------------------------------------------------------------------------
# Rules
.c.s: .c.s:
@$(CC) $(CFLAGS) $< @$(CC) $(CFLAGS) $<
.s.o: .s.o:
@$(AS) -g -o $@ $(AFLAGS) $< @$(AS) -g -o $@ $(AFLAGS) $<
#--------------------------------------------------------------------------
# Object files
OBJS = add.o \ OBJS = add.o \
addeqsp.o \ addeqsp.o \
addysp.o \ addysp.o \
@@ -199,9 +205,15 @@ OBJS = add.o \
xor.o \ xor.o \
zeropage.o zeropage.o
#--------------------------------------------------------------------------
# Targets
.PHONY: all clean zap
all: $(OBJS) all: $(OBJS)
clean: clean:
@rm -f *~ $(COBJS:.o=.s) $(OBJS) @rm -f *~ $(COBJS:.o=.s) $(OBJS)
zap: clean

View File

@@ -4,6 +4,9 @@
.SUFFIXES: .o .s .c .SUFFIXES: .o .s .c
#--------------------------------------------------------------------------
# Rules
%.o: %.c %.o: %.c
@$(CC) $(CFLAGS) $< @$(CC) $(CFLAGS) $<
@$(AS) -g -o $@ $(AFLAGS) $(*).s @$(AS) -g -o $@ $(AFLAGS) $(*).s
@@ -11,6 +14,9 @@
%.o: %.s %.o: %.s
@$(AS) -g -o $@ $(AFLAGS) $< @$(AS) -g -o $@ $(AFLAGS) $<
#--------------------------------------------------------------------------
# Object files
C_OBJS = tgi_load.o C_OBJS = tgi_load.o
S_OBJS = tgi-kernel.o \ S_OBJS = tgi-kernel.o \
@@ -53,6 +59,11 @@ S_OBJS = tgi-kernel.o \
tgi_unload.o tgi_unload.o
#--------------------------------------------------------------------------
# Targets
.PHONY: all clean zap
all: $(C_OBJS) $(S_OBJS) all: $(C_OBJS) $(S_OBJS)
clean: clean:
@@ -61,4 +72,5 @@ clean:
@rm -f $(C_OBJS) @rm -f $(C_OBJS)
@rm -f $(S_OBJS) @rm -f $(S_OBJS)
zap: clean

View File

@@ -53,6 +53,8 @@ TGIS =
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
# Targets # Targets
.PHONY: all clean zap
all: $(OBJS) $(EMDS) $(JOYS) $(TGIS) all: $(OBJS) $(EMDS) $(JOYS) $(TGIS)
../runtime/zeropage.o: ../runtime/zeropage.o:
@@ -61,3 +63,7 @@ all: $(OBJS) $(EMDS) $(JOYS) $(TGIS)
clean: clean:
@rm -f $(OBJS) $(EMDS:.emd=.o) $(JOYS:.joy=.o) $(TGIS:.tgi=.o) @rm -f $(OBJS) $(EMDS:.emd=.o) $(JOYS:.joy=.o) $(TGIS:.tgi=.o)
zap: clean
@rm -f $(EMDS) $(JOYS) $(TGIS)