File: Makefile

package info (click to toggle)
treetool 2.0.2a-4
  • links: PTS
  • area: non-free
  • in suites: etch, etch-m68k
  • size: 1,172 kB
  • ctags: 2,694
  • sloc: ansic: 26,504; makefile: 215
file content (28 lines) | stat: -rw-r--r-- 524 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
OBJS=maketree.o treefunc.o generic.o traverse.o intree.o iotree.o outree.o list.o memory.o findnode.o

all: treelib.o

clean:
	rm -f *.o

treelib.o: ${OBJS}
	ld -r -o treelib.o ${OBJS}
	cp treelib.o ${OBJDIR}
	cp treestruct.h ${INCDIR}
	cp list.h ${INCDIR}
	cp memory.h ${INCDIR}


list.o: list.c list.h
	${CC} -c list.c ${DBG} ${INC}

memory.o: memory.c memory.h
	${CC} -c memory.c ${DBG} ${INC}

%.o: %.c treestruct.h list.h
	${CC} ${CFLAGS} -c $*.c ${DBG} ${INC}

build:
	cp *.c ${BLD}
	cp *.h ${BLD}
	cp Makefile ${BLD}