1 |
CC = gcc -inostdin -I/usr/include -DUNIX -DSOLARIS |
2 |
CFLAGS = -c -g -Wunused |
3 |
|
4 |
RM = rm -f |
5 |
|
6 |
TOP = ../../.. |
7 |
SRC = $(TOP)/share/src/libUnix |
8 |
INC = $(TOP)/share |
9 |
LIB = .. |
10 |
|
11 |
DEFINES = -I$(INC)/epicsH |
12 |
ALLDEFINES = $(DEFINES) -DSOLARIS |
13 |
|
14 |
SRCS = \ |
15 |
$(SRC)/errSymTbl.c \ |
16 |
$(SRC)/lstLib.c |
17 |
|
18 |
OBJS = \ |
19 |
errSymTbl.o\ |
20 |
lstLib.o |
21 |
|
22 |
all:: depend libUnix.a |
23 |
|
24 |
libUnix.a: $(OBJS) |
25 |
$(RM) $@ |
26 |
ar crv $@ $(OBJS) |
27 |
cp -p libUnix.a ../bin |
28 |
|
29 |
errSymTbl.o: $(SRC)/errSymTbl.c |
30 |
$(RM) $@ |
31 |
$(CC) $(CFLAGS) $(ALLDEFINES) $(SRC)/errSymTbl.c |
32 |
|
33 |
lstLib.o: $(SRC)/lstLib.c |
34 |
$(RM) $@ |
35 |
$(CC) $(CFLAGS) $(ALLDEFINES) $(SRC)/lstLib.c |
36 |
|
37 |
install: libUnix.a |
38 |
cp -p libUnix.a ../bin |
39 |
|
40 |
clean: |
41 |
$(RM) libUnix.a |
42 |
$(RM) $(OBJS) |
43 |
$(RM) Makefile.depend |
44 |
|
45 |
depend: Makefile.depend |
46 |
|
47 |
Makefile.depend: $(SRCS) Makefile |
48 |
$(RM) Makefile.depend |
49 |
$(CC) -M $(ALLDEFINES) $(SRCS) > Makefile.depend |
50 |
|
51 |
include Makefile.depend |
52 |
|