/[TIS-4000 Rel T60]/sun2.4/importapps/snws/Makefile
ViewVC logotype

Contents of /sun2.4/importapps/snws/Makefile

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (show annotations)
Thu Aug 26 20:59:47 1999 UTC (24 years, 6 months ago) by tis4000
Branch: MAIN
CVS Tags: t55baseline, Duluth_baseline, LMC_baseline, HEAD
Changes since 1.2: +1 -1 lines
made Makefile.depend dependant on Makefile

1 CC = gcc -g -inostdinc -I/usr/include -DUNIX -DSOLARIS -DUSECB63
2 CFLAGS = -g -c -Wunused
3
4 RM = rm -f
5
6 TOP = ../../../..
7 SHAREPATH = $(TOP)/share
8 SRCPATH = $(SHAREPATH)/src
9 SRC = $(SRCPATH)/importapps/snws
10
11 CODEBASEPATH = /tools/codebase63/source
12
13 INCLUDES = \
14 -I$(SRC) \
15 -I$(SHAREPATH)/epicsH \
16 -I$(SRCPATH)/alarm \
17 -I$(CODEBASEPATH)
18
19 ALLDEFINES = $(INCLUDES) -I$(SRCPATH)/newtrend -DSOLARIS -DUSECB63
20
21 LIBS = \
22 ../../bin/libca.a \
23 ../../bin/libtis.a \
24 ../../bin/libUnix.a \
25 ../../bin/tisMsgLib.a \
26 $(CODEBASEPATH)/libcb.a
27
28 UNIQUELIBS = \
29 ../../bin/libca.a \
30 ../../bin/libUnix.a \
31 ../../bin/tisMsgLib.a \
32 $(CODEBASEPATH)/libcb.a
33
34 SRCS = \
35 $(SRC)/snwsSort.c \
36 $(SRC)/snwsUnique.c \
37 $(SRC)/snwsDbmake.c \
38 $(SRC)/snwsAlmake.c
39
40 OBJS = \
41 snwsSort.o \
42 snwsUnique.o \
43 snwsDbmake.o \
44 snwsAlmake.o
45
46 all: depend snwsSort snwsUnique snwsAlmake snwsDbmake snwsSortscript snwsSortunix
47
48 ########## TARGETS ########################################################
49
50 snwsSort: snwsSort.o $(LIBS)
51 $(RM) snwsSort
52 $(CC) -g -o snwsSort snwsSort.o $(LIBS) -lm -ldl
53
54 snwsUnique: snwsUnique.o $(UNIQUELIBS)
55 $(RM) snwsUnique
56 $(CC) -g -o snwsUnique snwsUnique.o $(UNIQUELIBS) -lm -ldl
57
58 snwsDbmake: snwsDbmake.o $(LIBS)
59 $(RM) snwsDbmake
60 $(CC) -g -o snwsDbmake snwsDbmake.o $(LIBS) -lm -ldl
61
62 snwsAlmake: snwsAlmake.o $(LIBS)
63 $(RM) snwsAlmake
64 $(CC) -g -o snwsAlmake snwsAlmake.o $(LIBS) -lm -ldl
65
66 snwsSortscript:
67 cp -p $(SRC)/snwsSortscript snwsSortscript
68 chmod +x snwsSortscript
69
70 snwsSortunix:
71 cp -p $(SRC)/snwsSortunix snwsSortunix
72 chmod +x snwsSortunix
73
74 ########## OBJECTS ########################################################
75
76
77 snwsSort.o: $(SRC)/snwsSort.c
78 $(RM) snwsSort.o
79 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/snwsSort.c
80
81 snwsUnique.o: $(SRC)/snwsUnique.c
82 $(RM) snwsUnique.o
83 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/snwsUnique.c
84
85 snwsDbmake.o: $(SRC)/snwsDbmake.c
86 $(RM) snwsDbmake
87 $(CC) $(CFLAGS) $(INCLUDES) -I$(SRCPATH)/newtrend $(SRC)/snwsDbmake.c
88
89 snwsAlmake.o: $(SRC)/snwsAlmake.c
90 $(RM) snwsAlmake
91 $(CC) $(CFLAGS) $(INCLUDES) -I$(SRCPATH)/newtrend $(SRC)/snwsAlmake.c
92
93 install:
94 cp -p snwsSort ../../bin
95 cp -p snwsUnique ../../bin
96 cp -p snwsDbmake ../../bin
97 cp -p snwsAlmake ../../bin
98 cp -p snwsSortscript ../../bin
99 cp -p snwsSortunix ../../bin
100
101
102 clean:
103 $(RM) $(OBJS)
104 $(RM) snwsSort
105 $(RM) snwsUnique
106 $(RM) snwsDbmake
107 $(RM) snwsAlmake
108 $(RM) snwsSortscript
109 $(RM) snwsSortunix
110 $(RM) Makefile.depend
111
112 depend: Makefile.depend
113
114 Makefile.depend: $(SRCS) Makefile
115 $(RM) Makefile.depend
116 $(CC) -M $(ALLDEFINES) $(SRCS) > Makefile.depend
117
118 include Makefile.depend
119

  ViewVC Help
Powered by ViewVC 1.1.30