mirror of
https://github.com/cc65/cc65.git
synced 2025-01-10 19:29:45 +00:00
actually use optimization switches
This commit is contained in:
parent
5f727ea56b
commit
3e8ae54759
@ -37,6 +37,12 @@ dotests: $(WORKDIR)/bdiff$(EXE)
|
||||
@$(MAKE) -C err clean all
|
||||
@$(MAKE) -C misc clean all
|
||||
|
||||
continue: $(WORKDIR)/bdiff$(EXE)
|
||||
@$(MAKE) -C val all
|
||||
@$(MAKE) -C ref all
|
||||
@$(MAKE) -C err all
|
||||
@$(MAKE) -C misc all
|
||||
|
||||
clean:
|
||||
@$(MAKE) -C val clean
|
||||
@$(MAKE) -C ref clean
|
||||
|
@ -33,19 +33,19 @@ all: $(TESTS)
|
||||
$(WORKDIR)/%.prg: %.c
|
||||
! $(CL65) $(CC65FLAGS) $< -o $@
|
||||
$(WORKDIR)/%.o.prg: %.c
|
||||
! $(CL65) $(CC65FLAGS) $< -o $@
|
||||
! $(CL65) -O $(CC65FLAGS) $< -o $@
|
||||
$(WORKDIR)/%.os.prg: %.c
|
||||
! $(CL65) $(CC65FLAGS) $< -o $@
|
||||
! $(CL65) -Os $(CC65FLAGS) $< -o $@
|
||||
$(WORKDIR)/%.osi.prg: %.c
|
||||
! $(CL65) $(CC65FLAGS) $< -o $@
|
||||
! $(CL65) -Osi $(CC65FLAGS) $< -o $@
|
||||
$(WORKDIR)/%.osir.prg: %.c
|
||||
! $(CL65) $(CC65FLAGS) $< -o $@
|
||||
! $(CL65) -Osir $(CC65FLAGS) $< -o $@
|
||||
$(WORKDIR)/%.oi.prg: %.c
|
||||
! $(CL65) $(CC65FLAGS) $< -o $@
|
||||
! $(CL65) -Oi $(CC65FLAGS) $< -o $@
|
||||
$(WORKDIR)/%.oir.prg: %.c
|
||||
! $(CL65) $(CC65FLAGS) $< -o $@
|
||||
! $(CL65) -Oir $(CC65FLAGS) $< -o $@
|
||||
$(WORKDIR)/%.or.prg: %.c
|
||||
! $(CL65) $(CC65FLAGS) $< -o $@
|
||||
! $(CL65) -Or $(CC65FLAGS) $< -o $@
|
||||
clean:
|
||||
@$(RM) $(TESTS)
|
||||
@$(RM) $(patsubst %.c,$(WORKDIR)/%.o,$(wildcard *.c))
|
||||
|
@ -32,6 +32,8 @@ TESTS += $(patsubst %.c,$(WORKDIR)/%.oi.prg,$(wildcard *.c))
|
||||
TESTS += $(patsubst %.c,$(WORKDIR)/%.oir.prg,$(wildcard *.c))
|
||||
TESTS += $(patsubst %.c,$(WORKDIR)/%.or.prg,$(wildcard *.c))
|
||||
|
||||
# FIXME: actually use/build differently optimized programs here
|
||||
|
||||
all: $(TESTS)
|
||||
|
||||
# should compile, but then hangs in an endless loop
|
||||
|
@ -49,37 +49,37 @@ $(WORKDIR)/%.prg: %.c $(WORKDIR)/%.ref
|
||||
$(DIFF) $(WORKDIR)/$*.out $(WORKDIR)/$*.ref
|
||||
|
||||
$(WORKDIR)/%.o.prg: %.c $(WORKDIR)/%.ref
|
||||
$(CL65) $(CC65FLAGS) $< -o $@
|
||||
$(CL65) -O $(CC65FLAGS) $< -o $@
|
||||
$(SIM65) $(SIM65FLAGS) $@ > $(WORKDIR)/$*.out
|
||||
$(DIFF) $(WORKDIR)/$*.out $(WORKDIR)/$*.ref
|
||||
|
||||
$(WORKDIR)/%.os.prg: %.c $(WORKDIR)/%.ref
|
||||
$(CL65) $(CC65FLAGS) $< -o $@
|
||||
$(CL65) -Os $(CC65FLAGS) $< -o $@
|
||||
$(SIM65) $(SIM65FLAGS) $@ > $(WORKDIR)/$*.out
|
||||
$(DIFF) $(WORKDIR)/$*.out $(WORKDIR)/$*.ref
|
||||
|
||||
$(WORKDIR)/%.osi.prg: %.c $(WORKDIR)/%.ref
|
||||
$(CL65) $(CC65FLAGS) $< -o $@
|
||||
$(CL65) -Osi $(CC65FLAGS) $< -o $@
|
||||
$(SIM65) $(SIM65FLAGS) $@ > $(WORKDIR)/$*.out
|
||||
$(DIFF) $(WORKDIR)/$*.out $(WORKDIR)/$*.ref
|
||||
|
||||
$(WORKDIR)/%.osir.prg: %.c $(WORKDIR)/%.ref
|
||||
$(CL65) $(CC65FLAGS) $< -o $@
|
||||
$(CL65) -Osir $(CC65FLAGS) $< -o $@
|
||||
$(SIM65) $(SIM65FLAGS) $@ > $(WORKDIR)/$*.out
|
||||
$(DIFF) $(WORKDIR)/$*.out $(WORKDIR)/$*.ref
|
||||
|
||||
$(WORKDIR)/%.oi.prg: %.c $(WORKDIR)/%.ref
|
||||
$(CL65) $(CC65FLAGS) $< -o $@
|
||||
$(CL65) -Oi $(CC65FLAGS) $< -o $@
|
||||
$(SIM65) $(SIM65FLAGS) $@ > $(WORKDIR)/$*.out
|
||||
$(DIFF) $(WORKDIR)/$*.out $(WORKDIR)/$*.ref
|
||||
|
||||
$(WORKDIR)/%.oir.prg: %.c $(WORKDIR)/%.ref
|
||||
$(CL65) $(CC65FLAGS) $< -o $@
|
||||
$(CL65) -Oir $(CC65FLAGS) $< -o $@
|
||||
$(SIM65) $(SIM65FLAGS) $@ > $(WORKDIR)/$*.out
|
||||
$(DIFF) $(WORKDIR)/$*.out $(WORKDIR)/$*.ref
|
||||
|
||||
$(WORKDIR)/%.or.prg: %.c $(WORKDIR)/%.ref
|
||||
$(CL65) $(CC65FLAGS) $< -o $@
|
||||
$(CL65) -Or $(CC65FLAGS) $< -o $@
|
||||
$(SIM65) $(SIM65FLAGS) $@ > $(WORKDIR)/$*.out
|
||||
$(DIFF) $(WORKDIR)/$*.out $(WORKDIR)/$*.ref
|
||||
|
||||
|
@ -37,31 +37,31 @@ $(WORKDIR)/%.prg: %.c
|
||||
$(SIM65) $(SIM65FLAGS) $@
|
||||
|
||||
$(WORKDIR)/%.o.prg: %.c
|
||||
$(CL65) $(CC65FLAGS) $< -o $@
|
||||
$(CL65) -O $(CC65FLAGS) $< -o $@
|
||||
$(SIM65) $(SIM65FLAGS) $@
|
||||
|
||||
$(WORKDIR)/%.os.prg: %.c
|
||||
$(CL65) $(CC65FLAGS) $< -o $@
|
||||
$(CL65) -Os $(CC65FLAGS) $< -o $@
|
||||
$(SIM65) $(SIM65FLAGS) $@
|
||||
|
||||
$(WORKDIR)/%.osi.prg: %.c
|
||||
$(CL65) $(CC65FLAGS) $< -o $@
|
||||
$(CL65) -Osi $(CC65FLAGS) $< -o $@
|
||||
$(SIM65) $(SIM65FLAGS) $@
|
||||
|
||||
$(WORKDIR)/%.osir.prg: %.c
|
||||
$(CL65) $(CC65FLAGS) $< -o $@
|
||||
$(CL65) -Osir $(CC65FLAGS) $< -o $@
|
||||
$(SIM65) $(SIM65FLAGS) $@
|
||||
|
||||
$(WORKDIR)/%.oi.prg: %.c
|
||||
$(CL65) $(CC65FLAGS) $< -o $@
|
||||
$(CL65) -Oi $(CC65FLAGS) $< -o $@
|
||||
$(SIM65) $(SIM65FLAGS) $@
|
||||
|
||||
$(WORKDIR)/%.oir.prg: %.c
|
||||
$(CL65) $(CC65FLAGS) $< -o $@
|
||||
$(CL65) -Oir $(CC65FLAGS) $< -o $@
|
||||
$(SIM65) $(SIM65FLAGS) $@
|
||||
|
||||
$(WORKDIR)/%.or.prg: %.c
|
||||
$(CL65) $(CC65FLAGS) $< -o $@
|
||||
$(CL65) -Or $(CC65FLAGS) $< -o $@
|
||||
$(SIM65) $(SIM65FLAGS) $@
|
||||
|
||||
clean:
|
||||
|
Loading…
x
Reference in New Issue
Block a user