Subversion Repositories tendra.SVN

Rev

Rev 7 | Rev 89 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7 Rev 38
Line 1... Line -...
1
# $Id$
-
 
2
 
1
 
3
# Standard directories and files
2
.include "../Makefile.inc"
4
 
-
 
5
SRC1=${.CURDIR}/errors
-
 
6
 
3
 
-
 
4
SRC1=./errors
-
 
5
 
7
# Standard variables
6
# Standard variables
8
 
7
 
9
WARNS?=		2
8
WARNS?=		2
10
 
9
 
11
TCCOPTS=	-Yansi -Xs
10
TCCOPTS=	-Yansi -Xs
12
CCOPTS=		${TCCOPTS} -I${BASE_DIR}/${INCLUDE} -I${.CURDIR} -I${OBJ_SDIR}
11
CCOPTS=		${TCCOPTS} -I${BASE_DIR}/${INCLUDE} -I${.CURDIR} -I${OBJ_SDIR}
Line 14... Line 13...
14
 
13
 
15
# Dependencies and construction rules
14
# Dependencies and construction rules
16
 
15
 
17
PROG=		${.CURDIR:T}
16
PROG=		${.CURDIR:T}
18
 
17
 
19
SRCS=		gen-errors.c\
18
OBJS=		gen-errors.o\
20
		arg-data.c arg-parse.c bistream.c bostream.c builder.c\
19
		arg-data.o arg-parse.o bistream.o bostream.o builder.o\
21
		capsule.c contents.c cstring-list.c cstring.c dalloc.c debug.c\
20
		capsule.o contents.o cstring-list.o cstring.o dalloc.o debug.o\
22
		dstring.c error-file.c error.c exception.c extract.c\
21
		dstring.o error-file.o error.o exception.o extract.o\
23
		file-name.c istream.c library.c linker.c main.c\
22
		file-name.o istream.o library.o linker.o main.o\
24
		map-entry.c map-table.c name-entry.c name-key.c name-table.c\
23
		map-entry.o map-table.o name-entry.o name-key.o name-table.o\
25
		nstring-list.c ostream.c rename-file.c shape-entry.c\
24
		nstring-list.o ostream.o rename-file.o shape-entry.o\
26
		shape-table.c syntax.c tdf-read.c tdf-write.c tdf.c\
25
		shape-table.o syntax.o tdf-read.o tdf-write.o tdf.o\
27
		unit-entry.c unit-table.c
26
		unit-entry.o unit-table.o
-
 
27
 
-
 
28
.c.o:
-
 
29
	$(CC) -c $(CFLAGS) -o $@ $<
-
 
30
 
-
 
31
$(PROG): $(OBJS)
-
 
32
	$(CC) -o $(PROG) $(LDFLAGS) $(OBJS)
-
 
33
 
-
 
34
clean:
-
 
35
	rm -f $(OBJS)
-
 
36
	rm -f $(PROG)
-
 
37
 
-
 
38
install:
-
 
39
	install -d $(INSTALL_BINDIR)
-
 
40
	install $(PROG) $(INSTALL_BINDIR)/$(PROG)
-
 
41
 
-
 
42
depend:
-
 
43
	mkdep $(CFLAGS) *.c
-
 
44
 
-
 
45
 
-
 
46
 
28
 
47
 
29
ERR_OUT=gen-errors.c gen-errors.h
48
ERR_OUT=gen-errors.o gen-errors.h
30
 
49
 
31
EFILES=${SRC1}/arg-data.e ${SRC1}/arg-parse.e ${SRC1}/builder.e\
50
EFILES=${SRC1}/arg-data.e ${SRC1}/arg-parse.e ${SRC1}/builder.e\
32
 ${SRC1}/capsule.e ${SRC1}/contents.e ${SRC1}/error-file.e\
51
 ${SRC1}/capsule.e ${SRC1}/contents.e ${SRC1}/error-file.e\
33
 ${SRC1}/extract.e ${SRC1}/for-osif.e ${SRC1}/library.e ${SRC1}/linker.e\
52
 ${SRC1}/extract.e ${SRC1}/for-osif.e ${SRC1}/library.e ${SRC1}/linker.e\
34
 ${SRC1}/main.e ${SRC1}/name-entry.e ${SRC1}/rename-file.e\
53
 ${SRC1}/main.e ${SRC1}/name-entry.e ${SRC1}/rename-file.e\
Line 36... Line 55...
36
 
55
 
37
gen-errors.c : ${BUILD_ERRORS} ${EFILES}
56
gen-errors.c : ${BUILD_ERRORS} ${EFILES}
38
	${REMOVE} ${ERR_OUT};\
57
	${REMOVE} ${ERR_OUT};\
39
	${BUILD_ERRORS} -o gen-errors ${EFILES}
58
	${BUILD_ERRORS} -o gen-errors ${EFILES}
40
 
59
 
41
.include "../Makefile.inc"
-