Subversion Repositories tendra.SVN

Rev

Rev 6 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6 Rev 25
Line 1... Line 1...
1
# $Id$
1
include ../../../../defs.mk
2
 
2
 
3
# Standard directories and files
3
# Standard directories and files
4
SRCC=${.CURDIR}/../../common
4
SRCC=../../common
5
SRC1=${.CURDIR}/../common
5
SRC1=../common
6
SRC2=${SRCC}/construct
6
SRC2=${SRCC}/construct
7
SRC3=${SRCC}/diag
7
SRC3=${SRCC}/diag
8
SRC4=${SRCC}/linkinfo
8
SRC4=${SRCC}/linkinfo
9
SRC5=${SRCC}/reader
9
SRC5=${SRCC}/reader
10
SRC6=${SRCC}/templ
10
SRC6=${SRCC}/templ
11
SPEC=${BASE_DIR}/src/lib/tdf/def_4_1.db
11
SPEC=${BASE_DIR}/src/lib/tdf/def_4_1.db
12
 
12
 
13
# Standard variables
13
# Standard variables
14
 
14
 
15
#TCCOPTS=-Xc -Y32bit -Yansi
15
#TCCOPTS=-Xc -Y32bit -Yansi
16
CCOPTS=	${TCCOPTS} -I${BASE_DIR}/${INCLUDE} -I${.CURDIR} -I${SRCC} -I${SRC1}\
16
CFLAGS=	${TCCOPTS} -I${BASE_DIR}/${INCLUDE} -I${.CURDIR} -I${SRCC} -I${SRC1}\
17
	-I${SRC2} -I${SRC3} -I${SRC4} -I${SRC5} -I${SRC6}
17
	-I${SRC2} -I${SRC3} -I${SRC4} -I${SRC5} -I${SRC6} -I$(BASE_DIR)/src/include
18
LIBS=
18
LIBS=
19
 
19
 
20
# Dependencies and construction rules
20
# Dependencies and construction rules
21
 
21
 
22
PROG=	trans
22
PROG=	trans
23
 
23
 
24
SRCS=	aldefs.c assembler.c basicread.c c_arith_type.c case_opt.c check.c\
24
OBJS=	aldefs.o assembler.o basicread.o c_arith_type.o case_opt.o check.o\
25
	check_id.c codec.c coder.c complex_eq.c const.c cproc.c decoder.c\
25
	check_id.o codec.o coder.o complex_eq.o const.o cproc.o decoder.o\
26
	dg_aux.c dg_fns.c diag_fns.c diag_info.c diag_out.c dw2_extra.c\
26
	dg_aux.o dg_fns.o diag_fns.o diag_info.o diag_out.o dw2_extra.o\
27
	evaluate.c exp.c f64.c flags.c flpt.c flpt_fns.c foralls.c\
27
	evaluate.o exp.o f64.o flags.o flpt.o flpt_fns.o foralls.o\
28
	global_opt.c glopt.c inl_norm.c inline.c inlinechoice.c install_fns.c\
28
	global_opt.o glopt.o inl_norm.o inline.o inlinechoice.o install_fns.o\
29
	installglob.c instr.c instr386.c is_worth.c label_ops.c li_fns.c\
29
	installglob.o instr.o instr386.o is_worth.o label_ops.o li_fns.o\
30
	localflags.c machine.c machine_toks.c mark_scope.c me_fns.c misc_c.c\
30
	localflags.o machine.o machine_toks.o mark_scope.o me_fns.o misc_c.o\
31
	operand.c out.c overlap.c read_fns.c read_sort.c readglob.c\
31
	operand.o out.o overlap.o read_fns.o read_sort.o readglob.o\
32
	reg_record.c scan2.c spec.c spec_tok.c table_fns.c trans.c translate.c\
32
	reg_record.o scan2.o spec.o spec_tok.o table_fns.o trans.o translate.o\
33
	tv_callees.c unroll.c weights.c xalloc.c
33
	tv_callees.o unroll.o weights.o xalloc.o
34
 
34
 
35
.PATH:	${SRC1} ${SRC2} ${SRC3} ${SRC4} ${SRC5} ${SRC6}
35
.PATH:	${SRC1} ${SRC2} ${SRC3} ${SRC4} ${SRC5} ${SRC6}
-
 
36
 
-
 
37
.c.o:
-
 
38
	$(CC) -c $(CFLAGS) -o $@ $<
-
 
39
 
-
 
40
$(PROG): $(OBJS)
-
 
41
	$(CC) -o $(PROG) $(LDFLAGS) $(OBJS)
-
 
42
 
-
 
43
install: $(PROG)
-
 
44
	install -d $(INSTALL_BINDIR)
-
 
45
	install $(PROG) $(INSTALL_BINDIR)/$(PROG)
-
 
46
 
-
 
47
 
-
 
48
clean:
-
 
49
	rm -f $(OBJS)
-
 
50
	rm -f $(PROG)
-
 
51
 
-
 
52
depend:
-
 
53
	mkdep $(CFLAGS) *.c
-
 
54
 
-
 
55
 
-
 
56
-include .depend
-
 
57
 
-
 
58
 
36
 
59
 
37
 
60
 
38
#MAKE_TDF=make_tdf
61
#MAKE_TDF=make_tdf
39
#
62
#
40
#TDF_OUT=${SRC6}/decoder.c ${SRC6}/ecodes.h ${SRC6}/externs.h ${SRC6}/inits.h\
63
#TDF_OUT=${SRC6}/decoder.o ${SRC6}/ecodes.h ${SRC6}/externs.h ${SRC6}/inits.h\
41
# ${SRC6}/main_reads.h ${SRC6}/temp_fns.new
64
# ${SRC6}/main_reads.h ${SRC6}/temp_fns.new
42
#
65
#
43
#auto : ${TDF_OUT}
66
#auto : ${TDF_OUT}
44
#
67
#
45
#${SRC6}/decoder.c : ${SPEC} ${SRC7}/decoder.c
68
#${SRC6}/decoder.o : ${SPEC} ${SRC7}/decoder.o
46
#	@${REMOVE} ${SRC6}/decoder.c
69
#	@${REMOVE} ${SRC6}/decoder.o
47
#	${MAKE_TDF} ${SPEC} ${SRC7}/decoder.c ${SRC6}/decoder.c
70
#	${MAKE_TDF} ${SPEC} ${SRC7}/decoder.o ${SRC6}/decoder.o
48
#
71
#
49
#${SRC6}/ecodes.h : ${SPEC} ${SRC7}/ecodes.h
72
#${SRC6}/ecodes.h : ${SPEC} ${SRC7}/ecodes.h
50
#	@${REMOVE} ${SRC6}/ecodes.h
73
#	@${REMOVE} ${SRC6}/ecodes.h
51
#	${MAKE_TDF} ${SPEC} ${SRC7}/ecodes.h ${SRC6}/ecodes.h
74
#	${MAKE_TDF} ${SPEC} ${SRC7}/ecodes.h ${SRC6}/ecodes.h
52
#
75
#
Line 60... Line 83...
60
#
83
#
61
#${SRC6}/main_reads.h : ${SPEC} ${SRC7}/main_reads.h
84
#${SRC6}/main_reads.h : ${SPEC} ${SRC7}/main_reads.h
62
#	@${REMOVE} ${SRC6}/main_reads.h
85
#	@${REMOVE} ${SRC6}/main_reads.h
63
#	${MAKE_TDF} ${SPEC} ${SRC7}/main_reads.h ${SRC6}/main_reads.h
86
#	${MAKE_TDF} ${SPEC} ${SRC7}/main_reads.h ${SRC6}/main_reads.h
64
#
87
#
65
#${SRC6}/temp_fns.new : ${SPEC} ${SRC7}/temp_fns.c
88
#${SRC6}/temp_fns.new : ${SPEC} ${SRC7}/temp_fns.o
66
#	@${REMOVE} ${SRC6}/temp_fns.new
89
#	@${REMOVE} ${SRC6}/temp_fns.new
67
#	${MAKE_TDF} ${SPEC} ${SRC7}/temp_fns.c ${SRC6}/temp_fns.new
90
#	${MAKE_TDF} ${SPEC} ${SRC7}/temp_fns.o ${SRC6}/temp_fns.new
68
#
91
#
69
#auto_clobber :
92
#auto_clobber :
70
#	${REMOVE} ${TDF_OUT}
93
#	${REMOVE} ${TDF_OUT}
71
 
94
 
72
.include "../Makefile.inc"
-