* .version: Updated to 2.3.1
[fw/sdcc] / support / tests / internal / Makefile
diff --git a/support/tests/internal/Makefile b/support/tests/internal/Makefile
new file mode 100644 (file)
index 0000000..f3d3c36
--- /dev/null
@@ -0,0 +1,20 @@
+TOPDIR = ../../..
+
+LIBSOURCE = \
+       $(TOPDIR)/src/SDCChasht.c \
+       $(TOPDIR)/support/Util/NewAlloc.c \
+       $(TOPDIR)/support/Util/SDCCerr.c \
+       $(TOPDIR)/src/SDCCmacro.c \
+       stubs.c
+
+SOURCES = testmacro.c $(LIBSOURCE)
+
+include $(TOPDIR)/Makefile.common
+
+CFLAGS += -I$(TOPDIR)/src -I$(TOPDIR)/support/Util -I$(TOPDIR)
+
+all: all-tests
+
+all-tests: $(OBJ)
+       $(CC) -o $@ $(OBJ)
+