Added a test for the graphing backend
This commit is contained in:
parent
a835237b9c
commit
c9e402dc01
|
@ -1,4 +1,4 @@
|
|||
TARGETS = hello struct union
|
||||
TARGETS = graph hello struct union
|
||||
PREFIX = /usr/local
|
||||
DESTDIR =
|
||||
BINDIR = $(PREFIX)/bin
|
||||
|
@ -16,6 +16,9 @@ INSTALL ?= install
|
|||
|
||||
all: $(TARGETS)
|
||||
|
||||
graph_OBJS = graph
|
||||
graph_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS) -M graph
|
||||
|
||||
hello_OBJS = hello
|
||||
hello_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS)
|
||||
|
||||
|
@ -25,6 +28,9 @@ struct_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS)
|
|||
union_OBJS = union
|
||||
union_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS)
|
||||
|
||||
graph: graph.c
|
||||
$(CC) $(graph_CFLAGS) -c graph.c
|
||||
|
||||
hello: hello.c
|
||||
$(CC) $(hello_CFLAGS) -c hello.c
|
||||
|
||||
|
@ -35,7 +41,7 @@ union: union.c
|
|||
$(CC) $(union_CFLAGS) -c union.c
|
||||
|
||||
clean:
|
||||
$(RM) -- $(hello_OBJS) $(struct_OBJS) $(union_OBJS)
|
||||
$(RM) -- $(graph_OBJS) $(hello_OBJS) $(struct_OBJS) $(union_OBJS)
|
||||
|
||||
distclean: clean
|
||||
$(RM) -- $(TARGETS)
|
||||
|
|
9
tests/graph.c
Normal file
9
tests/graph.c
Normal file
|
@ -0,0 +1,9 @@
|
|||
int test(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
int calltest(void)
|
||||
{
|
||||
return test();
|
||||
}
|
|
@ -1,9 +1,14 @@
|
|||
targets=hello,struct,union
|
||||
targets=graph,hello,struct,union
|
||||
cflags_force=-W
|
||||
cflags=
|
||||
cc=../src/c99
|
||||
dist=Makefile
|
||||
|
||||
[graph]
|
||||
type=object
|
||||
sources=graph.c
|
||||
cflags=-M graph
|
||||
|
||||
[hello]
|
||||
type=object
|
||||
sources=hello.c
|
||||
|
|
Loading…
Reference in New Issue
Block a user