1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-07 23:29:39 +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:
for tgt in $(ALLTARGETS); do \
$(MAKE) clean "$$tgt"lib || exit 1; \
@ -246,10 +247,15 @@ plus4lib:
.PHONY: clean
clean:
@for i in common conio dbg em joystick runtime tgi $(ALLTARGETS); do \
$(MAKE) -C $$i clean; \
@for i in cbm common conio dbg em joystick runtime tgi $(ALLTARGETS); do\
$(MAKE) -C $$i clean; \
done
.PHONY: zap
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

View File

@ -4,6 +4,9 @@
.SUFFIXES: .o .s .c
#--------------------------------------------------------------------------
# Rules
%.o: %.c
@$(CC) $(CFLAGS) $<
@$(AS) -o $@ $(AFLAGS) $(*).s
@ -11,9 +14,10 @@
%.o: %.s
@$(AS) -g -o $@ $(AFLAGS) $<
C_OBJS =
#--------------------------------------------------------------------------
# Object files
S_OBJS= _scrsize.o \
OBJS= _scrsize.o \
break.o \
cclear.o \
cgetc.o \
@ -32,9 +36,15 @@ S_OBJS= _scrsize.o \
where.o \
write.o
all: $(C_OBJS) $(S_OBJS)
#--------------------------------------------------------------------------
# Targets
.PHONY: all clean zap
all: $(OBJS)
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:
@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
#--------------------------------------------------------------------------
# Rules
%.o: %.c
@$(CC) $(CFLAGS) $<
@$(AS) -o $@ $(AFLAGS) $(*).s
@ -11,13 +14,23 @@
%.o: %.s
@$(AS) -g -o $@ $(AFLAGS) $<
#--------------------------------------------------------------------------
# Object files
C_OBJS =
S_OBJS = crt0.o \
systime.o
#--------------------------------------------------------------------------
# Targets
.PHONY: all clean zap
all: $(C_OBJS) $(S_OBJS)
clean:
@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
.PHONY: all clean zap
all: $(OBJS) $(EMDS) $(JOYS) $(TGIS)
../runtime/zeropage.o:
@ -64,3 +66,6 @@ all: $(OBJS) $(EMDS) $(JOYS) $(TGIS)
clean:
@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
.PHONY: all clean zap
all: $(OBJS) $(EMDS) $(JOYS) $(TGIS)
../runtime/zeropage.o:
@ -61,4 +63,6 @@ all: $(OBJS) $(EMDS) $(JOYS) $(TGIS)
clean:
@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
.PHONY: all clean zap
all: $(OBJS) $(EMDS) $(JOYS) $(TGIS)
../runtime/zeropage.o:
@ -65,3 +67,6 @@ all: $(OBJS) $(EMDS) $(JOYS) $(TGIS)
clean:
@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
#--------------------------------------------------------------------------
# Rules
%.o: %.c
@$(CC) $(CFLAGS) $<
@$(AS) -o $@ $(AFLAGS) $(*).s
@ -11,6 +14,9 @@
%.o: %.s
@$(AS) -g -o $@ $(AFLAGS) $<
#--------------------------------------------------------------------------
# Object files
C_OBJS = cbm_dir.o \
cbm_load.o \
cbm_save.o
@ -65,8 +71,15 @@ S_OBJS = c_acptr.o \
wherey.o \
write.o
#--------------------------------------------------------------------------
# Targets
.PHONY: all clean zap
all: $(C_OBJS) $(S_OBJS)
clean:
@rm -f *~ *.bck $(C_OBJS:.o=.s) $(C_OBJS) $(S_OBJS)
zap: clean

View File

@ -63,6 +63,8 @@ EMDS = cbm510-ram.emd
#--------------------------------------------------------------------------
# Targets
.PHONY: all clean zap
all: $(OBJS) $(EMDS) $(TGIS)
../runtime/zeropage.o:
@ -71,3 +73,6 @@ all: $(OBJS) $(EMDS) $(TGIS)
clean:
@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
.PHONY: all clean zap
all: $(OBJS) $(EMDS) $(TGIS)
../runtime/zeropage.o:
@ -61,3 +63,6 @@ all: $(OBJS) $(EMDS) $(TGIS)
clean:
@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
#--------------------------------------------------------------------------
# Rules
%.o: %.c
@$(CC) $(CFLAGS) $<
@$(AS) -g -o $@ $(AFLAGS) $(*).s
@ -11,6 +14,9 @@
%.o: %.s
@$(AS) -g -o $@ $(AFLAGS) $<
#--------------------------------------------------------------------------
# Object files
C_OBJS = _afailed.o \
_hextab.o \
_scanf.o \
@ -132,6 +138,11 @@ S_OBJS = _fdesc.o \
zerobss.o
#--------------------------------------------------------------------------
# Targets
.PHONY: all clean zap
all: $(C_OBJS) $(S_OBJS)
clean:
@ -140,3 +151,5 @@ clean:
@rm -f $(C_OBJS)
@rm -f $(S_OBJS)
zap: clean

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -76,6 +76,8 @@ TGIS =
#--------------------------------------------------------------------------
# Targets
.PHONY: all clean zap
all: $(OBJS) $(EMDS) $(JOYS) $(TGIS)
../runtime/zeropage.o:
@ -84,3 +86,6 @@ all: $(OBJS) $(EMDS) $(JOYS) $(TGIS)
clean:
@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
#--------------------------------------------------------------------------
# Rules
.c.s:
@$(CC) $(CFLAGS) $<
.s.o:
@$(AS) -g -o $@ $(AFLAGS) $<
#--------------------------------------------------------------------------
# Object files
OBJS = add.o \
addeqsp.o \
addysp.o \
@ -199,9 +205,15 @@ OBJS = add.o \
xor.o \
zeropage.o
#--------------------------------------------------------------------------
# Targets
.PHONY: all clean zap
all: $(OBJS)
clean:
@rm -f *~ $(COBJS:.o=.s) $(OBJS)
zap: clean

View File

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

View File

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