* src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
[fw/sdcc] / support / regression / Makefile
index 1f29aa2537fae0250e3355d30406a4e750689f93..26c118b0f2810f5222b8cc2f1286075870cc0741 100644 (file)
@@ -38,7 +38,7 @@
 
 # Uncomment this to show only errors and the summary.
 # Comment this out for debugging.
-#.SILENT:
+.SILENT:
 
 # All original tests live in TESTS_DIR and below
 TESTS_DIR = tests
@@ -60,7 +60,7 @@ GENERATE_CASES = generate-cases.py
 # Each directory under ports/ is used as a port name.  Each port is tested.
 # Each port must have a spec.mk which describes how to build the object
 # files and how to run the emulator.
-ALL_PORTS = $(filter-out CVS xa51 mcs51 mcs51-large mcs51-stack-auto ds390 gbz80,$(notdir $(wildcard $(PORTS_DIR)/*)))
+ALL_PORTS = $(filter-out CVS xa51 ucz80 gbz80,$(notdir $(wildcard $(PORTS_DIR)/*)))
 
 # These  ports will be cleaned with 'make clean'
 CLEAN_PORTS = $(filter-out CVS,$(notdir $(wildcard $(PORTS_DIR)/*)))
@@ -82,8 +82,10 @@ test-gbz80:
 # Helper rule for testing the mcs51 port only
 test-mcs51:
        $(MAKE) test-port PORT=mcs51
+
 test-mcs51-large:
        $(MAKE) test-port PORT=mcs51-large
+
 test-mcs51-stack-auto:
        $(MAKE) make-library test-port PORT=mcs51-stack-auto
 
@@ -95,6 +97,10 @@ test-ds390:
 test-ucz80:
        $(MAKE) test-port PORT=ucz80
 
+# Helper rule for testing the hc08 port only(use ucSim simulator)
+test-hc08:
+       $(MAKE) test-port PORT=hc08
+
 # Helper rule for testing the xa51 port only(use ucSim simulator)
 test-xa51:
        $(MAKE) test-port PORT=xa51
@@ -118,7 +124,7 @@ PORT_RESULTS = $(ALL_TESTS:$(TESTS_DIR)/%.c=$(PORT_RESULTS_DIR)/%.out)
 
 SDCC_DIR = ../..
 SDCC_EXTRA_DIR = ../../../sdcc-extra
-
+INC_DIR = $(SDCC_DIR)/device/include
 
 # Defaults.  Override in spec.mk if required.
 # Path to SDCC
@@ -137,7 +143,7 @@ ifdef PORT
 include $(PORTS_DIR)/$(PORT)/spec.mk
 endif
 
-SDCCFLAGS += -Ifwk/include -Itests
+SDCCFLAGS += -Ifwk/include -Itests -I$(INC_DIR)
 
 # List of intermediate files to keep.  Pretty much keep everything as
 # disk space is free.