switching between pic14/pic16 ports
* src/regression/picregs.h: added pic14/16 header file switch
* src/regression/{compare7.c,compare8.c,compare9.c,compare10.c,
inline.c,nestfor.c,string1.c}: include "picregs.h"
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4840
4a8a32a2-be11-0410-ad9d-
d568d2c75423
+2007-06-08 Raphael Neider <rneider AT web.de>
+
+ * src/regression/Makefile: suppress parallel builds, allow easy
+ switching between pic14/pic16 ports
+ * src/regression/picregs.h: added pic14/16 header file switch
+ * src/regression/{compare7.c,compare8.c,compare9.c,compare10.c,
+ inline.c,nestfor.c,string1.c}: include "picregs.h"
+
2007-06-07 Borut Razem <borut.razem AT siol.net>
* sim/ucsim/*.[ch], sim/ucsim/configure, sim/ucsim/configure.in:
CC = sdcc
LINKER = gplink
+USE_PIC16 ?= 1
+ifeq ($(strip $(filter 1 yes,$(USE_PIC16))),)
TARGETPIC = 16f877
TARGETPIC = 16f84
CFLAGS = -mpic14 -p$(TARGETPIC)
+DIR = pic
+else
+TARGETPIC = 18f452
+CFLAGS = -mpic16 -p$(TARGETPIC)
+DIR = pic16
+endif
CFLAGS += -Wl,-q
-CFLAGS += -Wl,--map -I ../../device/include/pic
-CFLAGS += -L ../../device/lib/pic/bin
+CFLAGS += -Wl,--map
+CFLAGS += -I ../../device/include/$(DIR)
+CFLAGS += -L ../../device/lib/$(DIR)/bin
#CFLAGS += --no-pcode-opt
+#CFLAGS += -V
.SUFFIXES: .asm .c .cod .stc
+.NOTPARALLEL:
# Results of the test are placed here:
LOGFILE = test.log
#include "gpsim_assert.h"
-#include "pic16f877.h"
+#include "picregs.h"
+
// Signed comparisons of the form: (variable>=LIT)
//
// This regression test exercises all of the boundary
#include "gpsim_assert.h"
-#include "pic16f877.h"
+#include "picregs.h"
// Signed comparisons of the form: (variable<LIT)
//
// This regression test exercises all of the boundary
#include "gpsim_assert.h"
-#include "pic16f877.h"
+#include "picregs.h"
// Signed comparisons of the form: (variable>LIT)
//
// This regression test exercises all of the boundary
#include "gpsim_assert.h"
-#include "pic16f877.h"
+#include "picregs.h"
// Signed comparisons of the form: (variable<=LIT)
//
// This regression test exercises all of the boundary
#include "gpsim_assert.h"
-#include "pic16f877.h"
+#include "picregs.h"
#pragma preproc_asm -
#include "gpsim_assert.h"
-#include "pic16f877.h"
+#include "picregs.h"
unsigned char failures=0;
--- /dev/null
+#ifndef PICREGS_H
+
+#if defined(__pic16)
+ #include <pic18fregs.h>
+#else
+ #include <pic14regs.h>
+#endif
+
+#endif
+
#include "gpsim_assert.h"
-#include "pic16f877.h"
+#include "picregs.h"
unsigned char failures=0;
//unsigned bit bit1;