Moved the test files and trying to let them "build"
This commit is contained in:
parent
b74edd9592
commit
b1ae3015af
46
tests/Makefile
Normal file
46
tests/Makefile
Normal file
|
@ -0,0 +1,46 @@
|
|||
TARGETS = hello struct union
|
||||
PREFIX = /usr/local
|
||||
DESTDIR =
|
||||
BINDIR = $(PREFIX)/bin
|
||||
CC = ../src/c99
|
||||
CPPFLAGSF?=
|
||||
CPPFLAGS?=
|
||||
CFLAGSF = -W
|
||||
CFLAGS =
|
||||
RM ?= rm -f
|
||||
LN ?= ln -f
|
||||
MKDIR ?= mkdir -p
|
||||
INSTALL ?= install
|
||||
|
||||
|
||||
all: $(TARGETS)
|
||||
|
||||
hello_OBJS = hello
|
||||
hello_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS)
|
||||
|
||||
struct_OBJS = struct
|
||||
struct_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS)
|
||||
|
||||
union_OBJS = union
|
||||
union_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS)
|
||||
|
||||
hello: hello.c
|
||||
$(CC) $(hello_CFLAGS) -c hello.c
|
||||
|
||||
struct: struct.c
|
||||
$(CC) $(struct_CFLAGS) -c struct.c
|
||||
|
||||
union: union.c
|
||||
$(CC) $(union_CFLAGS) -c union.c
|
||||
|
||||
clean:
|
||||
$(RM) -- $(hello_OBJS) $(struct_OBJS) $(union_OBJS)
|
||||
|
||||
distclean: clean
|
||||
$(RM) -- $(TARGETS)
|
||||
|
||||
install: $(TARGETS)
|
||||
|
||||
uninstall:
|
||||
|
||||
.PHONY: all clean distclean install uninstall
|
16
tests/project.conf
Normal file
16
tests/project.conf
Normal file
|
@ -0,0 +1,16 @@
|
|||
targets=hello,struct,union
|
||||
cflags_force=-W
|
||||
cflags=
|
||||
cc=../src/c99
|
||||
|
||||
[hello]
|
||||
type=object
|
||||
sources=hello.c
|
||||
|
||||
[struct]
|
||||
type=object
|
||||
sources=struct.c
|
||||
|
||||
[union]
|
||||
type=object
|
||||
sources=union.c
|
Loading…
Reference in New Issue
Block a user