1 |
CC = gcc -g -DSOLARIS -DUSECB63 |
2 |
CFLAGS = -Wunused |
3 |
RM = rm -f |
4 |
|
5 |
CODEBASEPATH = /tools/codebase63/source |
6 |
TOP = ../../.. |
7 |
SHAREPATH = $(TOP)/share |
8 |
SRCPATH = $(TOP)/share/src |
9 |
SRC = $(SRCPATH)/fwdlink |
10 |
|
11 |
LIBS = \ |
12 |
../bin/tisMsgLib.a \ |
13 |
$(CODEBASEPATH)/libcb.a |
14 |
|
15 |
INCLUDES = \ |
16 |
-I$(SRC) \ |
17 |
-I$(TOP)/share/epicsH \ |
18 |
-I$(CODEBASEPATH) |
19 |
|
20 |
ALLDEFINES = $(INCLUDES) -DSOLARIS -DUSECB63 |
21 |
|
22 |
SRCS = \ |
23 |
$(SRC)/chains.c \ |
24 |
$(SRC)/index.c |
25 |
|
26 |
OBJS = \ |
27 |
chains.o \ |
28 |
index.o |
29 |
|
30 |
all : depend chains |
31 |
|
32 |
chains : $(OBJS) $(LIBS) |
33 |
$(RM) chains |
34 |
$(CC) -o chains $(OBJS) $(LIBS) -ldl -lm |
35 |
|
36 |
chains.o : $(SRC)/chains.c |
37 |
$(RM) chains.o |
38 |
$(CC) -c $(CFLAGS) $(INCLUDES) $(SRC)/chains.c |
39 |
|
40 |
index.o : $(SRC)/index.c |
41 |
$(RM) index.o |
42 |
$(CC) -c $(CFLAGS) $(INCLUDES) $(SRC)/index.c |
43 |
|
44 |
install: |
45 |
cp -p chains ../bin |
46 |
|
47 |
clean: |
48 |
$(RM) chains |
49 |
$(RM) $(OBJS) |
50 |
$(RM) Makefile.depend |
51 |
|
52 |
depend: Makefile.depend |
53 |
|
54 |
Makefile.depend: $(SRCS) Makefile |
55 |
$(RM) Makefile.depend |
56 |
$(CC) -M $(ALLDEFINES) $(SRCS) > Makefile.depend |
57 |
|
58 |
include Makefile.depend |
59 |
|