diff options
author | Michal Krol <[email protected]> | 2006-05-30 09:38:16 +0000 |
---|---|---|
committer | Michal Krol <[email protected]> | 2006-05-30 09:38:16 +0000 |
commit | 23b7c7dc1469ba5bbd14f736a3c188c63cd4f280 (patch) | |
tree | d56b43599a3f39ad6ec2f073e91247733b15c55d /progs/slang/Makefile | |
parent | 44d5c8668a43fc06115ea83554bb2249ea4d2c6f (diff) |
Make it running under Linux.
Diffstat (limited to 'progs/slang/Makefile')
-rw-r--r-- | progs/slang/Makefile | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/progs/slang/Makefile b/progs/slang/Makefile new file mode 100644 index 00000000000..90debd186af --- /dev/null +++ b/progs/slang/Makefile @@ -0,0 +1,67 @@ +# progs/slang/Makefile + +TOP = ../.. + +include $(TOP)/configs/current + +INCDIR = $(TOP)/include + +LIB_DEP = $(LIB_DIR)/$(GL_LIB_NAME) + +# +# targets +# + +.PHONY: default tests clean + +default: cltest sotest vstest + +tests: default + ! ./sotest 2> /dev/null | (grep -e ^[*][*][*]) + ! ./vstest 2> /dev/null | (grep -e ^[*][*][*]) + ! ./cltest 2> /dev/null | (grep -e ^[*][*][*]) + +clean: + rm -f cltest.o sotest.o vstest.o framework.o cltest sotest vstest + +# +# executables +# + +cltest: cltest.o framework.o $(LIB_DEP) + $(CC) cltest.o framework.o $(APP_LIB_DEPS) -o cltest + +sotest: sotest.o framework.o $(LIB_DEP) + $(CC) sotest.o framework.o $(APP_LIB_DEPS) -o sotest + +vstest: vstest.o framework.o $(LIB_DEP) + $(CC) vstest.o framework.o $(APP_LIB_DEPS) -o vstest + +# +# objects +# + +framework.o: framework.c + $(CC) -c -I$(INCDIR) framework.c -o framework.o + +cltest.o: cltest.c + $(CC) -c -I$(INCDIR) cltest.c -o cltest.o + +sotest.o: sotest.c + $(CC) -c -I$(INCDIR) sotest.c -o sotest.o + +vstest.o: vstest.c + $(CC) -c -I$(INCDIR) vstest.c -o vstest.o + +# +# sources +# + +framework.c: framework.h + +cltest.c: framework.h + +sotest.c: framework.h + +vstest.c: framework.h + |