aboutsummaryrefslogtreecommitdiffhomepage
path: root/libslang/src/test/Makefile
blob: 85f64dda4c2b73153d12c4a570d762ec582a9e40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
TEST_SCRIPTS = syntax sscanf loops arith array strops bstring \
  pack stdio assoc selfload struct nspace ospath ifeval anytype arrmult \
  nspace2 prep
TEST_PGM = sltest
RUN_TEST_PGM = ./$(TEST_PGM)
SLANGINC = ..
SLANGLIB = ../$(ARCH)objs

run_tests: $(TEST_PGM)
	@echo ""
	@echo "Running tests:"
	@echo ""
	@for X in $(TEST_SCRIPTS); \
	do \
	   $(RUN_TEST_PGM) $$X.sl; \
	done
	touch sltest.c

sltest: sltest.c $(SLANGLIB)/libslang.a
	$(CC) $(CFLAGS) $(LDFLAGS) sltest.c -o sltest -I$(SLANGINC) -L$(SLANGLIB) -lslang $(TCAPLIB) -lm
clean: 
	-/bin/rm -f *~ sltest *.o *.log