From e3c550be4ccdf2f6d0591378bda07c031fec3054 Mon Sep 17 00:00:00 2001 From: glenux Date: Tue, 17 Feb 2004 16:43:47 +0000 Subject: [PATCH] *** empty log message *** --- Makefile | 5 +++-- test/Makefile | 39 +++++++++++++++++++++++++++++++++++++++ test/create_delete.c | 8 ++++++++ 3 files changed, 50 insertions(+), 2 deletions(-) create mode 100644 test/Makefile create mode 100644 test/create_delete.c diff --git a/Makefile b/Makefile index a7d3555..1d5e293 100644 --- a/Makefile +++ b/Makefile @@ -20,8 +20,8 @@ run: $(MAKE) run ) subdir: - ( cd src/ ; \ - $(MAKE) ) + $(MAKE) -C src/ + $(MAKE) -C test/ doc: ( cd src/ ; \ @@ -29,6 +29,7 @@ doc: clean: $(MAKE) clean -C src/ + $(MAKE) clean -C test/ @rm -f *.class *~ package: clean createpackage sendtoarchives diff --git a/test/Makefile b/test/Makefile new file mode 100644 index 0000000..bb221ff --- /dev/null +++ b/test/Makefile @@ -0,0 +1,39 @@ +### HEADER HERE + +# @CLASSPATH=$(CLASSPATH) $(JAVAC) $(JFLAGS) $< + +#INCLUDES=-I/ +#LIBINC=-L +#LIBS= + +CC=gcc +CFLAGS=-ggdb -O2 -Wall +INCLUDES=-I../src +LIBINC=-L../src +LIBS=-lnazgul + +USER_CLASSPATH:=../bin:../lib +JFLAGS=-d ../bin -g -deprecation +#-verbose +PRJNAME=Libnazgul +GDATE := $(shell date +"-%Y-%m-%d_r%H") +GFILENAME := ../$(PRJNAME)$(GDATE).tar.bz2 +LOCALDIR = $(shell pwd) +BINDIR=../bin +CFILES := $(shell ls *.c) +#OFILES := $(patsubst %.c,%.o,$(CFILES)) +FILES := $(patsubst %.c,%,$(CFILES)) + +all: build + +build : $(FILES) + +clean: + @echo -e "Cleaning..." + @rm -f *.a + @rm -f *.o + @rm -f $(FILES) + +% : %.c + $(CC) $(CFLAGS) $(INCLUDES) $(LIBINC) $(LIBS) $< -o $* + diff --git a/test/create_delete.c b/test/create_delete.c new file mode 100644 index 0000000..13a2c23 --- /dev/null +++ b/test/create_delete.c @@ -0,0 +1,8 @@ +#include "nzg_iface.h" +#include "nzg_proto.h" + +int main(void) { + // msgSpaceId mSID=msgSpaceIdGet(""); //renvoie un ID propre au programme + // msgSpace mS=0; + return 0; +}