Fixed the Makefile targets for the tests

This commit is contained in:
Pierre Pronchery 2012-11-30 14:54:34 +01:00
parent c9e402dc01
commit 69e3ab0c55
3 changed files with 24 additions and 23 deletions

View File

@ -123,6 +123,7 @@ dist:
$(PACKAGE)-$(VERSION)/src/target/asm/i586.c \ $(PACKAGE)-$(VERSION)/src/target/asm/i586.c \
$(PACKAGE)-$(VERSION)/src/target/asm/i686.c \ $(PACKAGE)-$(VERSION)/src/target/asm/i686.c \
$(PACKAGE)-$(VERSION)/src/target/project.conf \ $(PACKAGE)-$(VERSION)/src/target/project.conf \
$(PACKAGE)-$(VERSION)/tests/graph.c \
$(PACKAGE)-$(VERSION)/tests/hello.c \ $(PACKAGE)-$(VERSION)/tests/hello.c \
$(PACKAGE)-$(VERSION)/tests/struct.c \ $(PACKAGE)-$(VERSION)/tests/struct.c \
$(PACKAGE)-$(VERSION)/tests/union.c \ $(PACKAGE)-$(VERSION)/tests/union.c \

View File

@ -1,4 +1,4 @@
TARGETS = graph hello struct union TARGETS = graph.o hello.o struct.o union.o
PREFIX = /usr/local PREFIX = /usr/local
DESTDIR = DESTDIR =
BINDIR = $(PREFIX)/bin BINDIR = $(PREFIX)/bin
@ -16,32 +16,32 @@ INSTALL ?= install
all: $(TARGETS) all: $(TARGETS)
graph_OBJS = graph graph.o_OBJS = graph.o
graph_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS) -M graph graph.o_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS) -M graph
hello_OBJS = hello hello.o_OBJS = hello.o
hello_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS) hello.o_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS)
struct_OBJS = struct struct.o_OBJS = struct.o
struct_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS) struct.o_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS)
union_OBJS = union union.o_OBJS = union.o
union_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS) union.o_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS)
graph: graph.c graph.o: graph.c
$(CC) $(graph_CFLAGS) -c graph.c $(CC) $(graph.o_CFLAGS) -c graph.c
hello: hello.c hello.o: hello.c
$(CC) $(hello_CFLAGS) -c hello.c $(CC) $(hello.o_CFLAGS) -c hello.c
struct: struct.c struct.o: struct.c
$(CC) $(struct_CFLAGS) -c struct.c $(CC) $(struct.o_CFLAGS) -c struct.c
union: union.c union.o: union.c
$(CC) $(union_CFLAGS) -c union.c $(CC) $(union.o_CFLAGS) -c union.c
clean: clean:
$(RM) -- $(graph_OBJS) $(hello_OBJS) $(struct_OBJS) $(union_OBJS) $(RM) -- $(graph.o_OBJS) $(hello.o_OBJS) $(struct.o_OBJS) $(union.o_OBJS)
distclean: clean distclean: clean
$(RM) -- $(TARGETS) $(RM) -- $(TARGETS)

View File

@ -1,22 +1,22 @@
targets=graph,hello,struct,union targets=graph.o,hello.o,struct.o,union.o
cflags_force=-W cflags_force=-W
cflags= cflags=
cc=../src/c99 cc=../src/c99
dist=Makefile dist=Makefile
[graph] [graph.o]
type=object type=object
sources=graph.c sources=graph.c
cflags=-M graph cflags=-M graph
[hello] [hello.o]
type=object type=object
sources=hello.c sources=hello.c
[struct] [struct.o]
type=object type=object
sources=struct.c sources=struct.c
[union] [union.o]
type=object type=object
sources=union.c sources=union.c