1 |
CC = gcc -inostdinc -I/usr/include -DSOLARIS |
2 |
CFLAGS = -c -g -Wunused |
3 |
|
4 |
RM = rm -f |
5 |
|
6 |
TOP = ../../.. |
7 |
SHAREPATH = $(TOP)/share |
8 |
SRCPATH = $(TOP)/share/src |
9 |
SRC = $(TOP)/share/src/tisLdisp |
10 |
|
11 |
INCLUDES = \ |
12 |
-I$(SRC) \ |
13 |
-I/usr/openwin/include \ |
14 |
-I/usr/dt/include |
15 |
|
16 |
ALLDEFINES = $(INCLUDES) -DSOLARIS |
17 |
|
18 |
SRCS = $(SRC)/tisLdisp.c |
19 |
|
20 |
OBJS = tisLdisp.o |
21 |
|
22 |
all:: depend tisLdisp |
23 |
|
24 |
tisLdisp: tisLdisp.o |
25 |
$(RM) tisLdisp |
26 |
$(CC) -o tisLdisp tisLdisp.o \ |
27 |
-lMrm -lXm -lm -lXt -lX11 -lsocket -lnls -lgen |
28 |
|
29 |
tisLdisp.o: $(SRC)/tisLdisp.c |
30 |
$(CC) $(CFLAGS) $(INCLUDES) $(SRC)/tisLdisp.c |
31 |
|
32 |
install: |
33 |
cp -p tisLdisp ../bin |
34 |
|
35 |
clean:: |
36 |
$(RM) tisLdisp |
37 |
$(RM) $(OBJS) |
38 |
$(RM) Makefile.depend |
39 |
|
40 |
depend: Makefile.depend |
41 |
|
42 |
Makefile.depend: $(SRCS) Makefile |
43 |
$(RM) Makefile.depend |
44 |
$(CC) -M $(ALLDEFINES) $(SRCS) > Makefile.depend |
45 |
|
46 |
include Makefile.depend |
47 |
|