From 6aa0e0017d7d0cddc006da885946934b06949a91 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Fri, 14 Oct 2011 04:55:05 +0200 Subject: include libslang-1.4.9 and automatically build it and link erlang-slang against it few (erlang) people will still have libslang-1.4.9 installed or spend time to get it to link against the driver --- libslang/src/curses/Makefile | 51 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 libslang/src/curses/Makefile (limited to 'libslang/src/curses/Makefile') diff --git a/libslang/src/curses/Makefile b/libslang/src/curses/Makefile new file mode 100644 index 0000000..0ca340b --- /dev/null +++ b/libslang/src/curses/Makefile @@ -0,0 +1,51 @@ +COMPILE = $(CC) $(CFLAGS) -g -DSLANG -I.. +LFLAGS = -L../$(ARCH)objs -lslang + +CURSES_H = ../curses.h + +EXECS = rain blue hanoi firework \ + bs battle gdc tclock worm view +#knight newdemo testcurs xmas + +all: $(CURSES_H) $(EXECS) + +$(CURSES_H): + echo '#include ' > $(CURSES_H) + +view: view.c + $(COMPILE) $@.c -o $@ $(LFLAGS) +bs: $(CURSES_H) bs.c + $(COMPILE) $@.c -o $@ $(LFLAGS) +gdc: $(CURSES_H) gdc.c + $(COMPILE) $@.c -o $@ $(LFLAGS) +battle: $(CURSES_H) battle.c + $(COMPILE) $@.c -o $@ $(LFLAGS) +hanoi: $(CURSES_H) hanoi.c + $(COMPILE) $@.c -o $@ $(LFLAGS) +blue: $(CURSES_H) blue.c + $(COMPILE) $@.c -o $@ $(LFLAGS) +rain: $(CURSES_H) rain.c + $(COMPILE) $@.c -o $@ $(LFLAGS) +firework: $(CURSES_H) firework.c + $(COMPILE) $@.c -o $@ $(LFLAGS) +tclock: $(CURSES_H) tclock.c + $(COMPILE) $@.c -o $@ $(LFLAGS) -lm +worm: worm.c + $(COMPILE) $@.c -o $@ $(LFLAGS) -lm +knight: knight.c + $(COMPILE) $@.c -o $@ $(LFLAGS) -lm +xmas: xmas.c + $(COMPILE) $@.c -o $@ $(LFLAGS) -lm +newdemo: newdemo.c + $(COMPILE) $@.c -o $@ $(LFLAGS) -lm +testcurs: testcurs.c + $(COMPILE) $@.c -o $@ $(LFLAGS) -lm +lrtest: lrtest.c + $(COMPILE) $@.c -o $@ $(LFLAGS) -lm +t: t.c + $(COMPILE) $@.c -o $@ $(LFLAGS) -lm +key: key.c + $(COMPILE) $@.c -o $@ $(LFLAGS) -lm + +clean: + /bin/rm $(EXECS) -- cgit v1.2.3