167
|
1 ##
|
|
2 ## SUMMARY: Makefile for the OO-Browser
|
|
3 ##
|
|
4 ## AUTHOR: Bob Weiner / Mark Stern
|
|
5 ## ORG: InfoDock Associates / Brown U.
|
|
6 ##
|
|
7 ## ORIG-DATE: 15-Oct-90
|
|
8 ## LAST-MOD: 19-Oct-96 at 00:53:29 by Bob Weiner
|
|
9 ##
|
|
10 ## Copyright (C) 1990-1996 Free Software Foundation, Inc.
|
|
11 ## See the file BR-COPY for license information.
|
|
12 ##
|
|
13 ## This file is part of the OO-Browser.
|
|
14
|
|
15 #define NOT_C_CODE
|
|
16 #include "../../src/config.h"
|
|
17
|
|
18 SHELL = /bin/sh
|
|
19 RM = rm -f
|
|
20
|
|
21 ## ==================== Things "configure" will edit ====================
|
|
22 CC=@CC@
|
|
23 CPP=@CPP@
|
|
24 CFLAGS=@CFLAGS@
|
|
25 CPPFLAGS=@CPPFLAGS@
|
|
26 LDFLAGS=@LDFLAGS@
|
|
27
|
169
|
28 INSTALL = @INSTALL@
|
167
|
29 INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|
30
|
|
31 c_switch_all=@c_switch_all@
|
|
32 ld_switch_all=@ld_switch_all@
|
|
33 ld_libs_all=@ld_libs_all@
|
|
34
|
|
35 build_top=../..
|
|
36
|
173
|
37 cflags = -I${build_top}/src $(CPPFLAGS) $(c_switch_all)
|
|
38 ldflags = $(ld_switch_all) -lXaw $(ld_libs_all)
|
|
39
|
167
|
40 #ifdef USE_GNU_MAKE
|
|
41 vpath %.c @srcdir@
|
|
42 vpath %.h @srcdir@
|
|
43 #else
|
|
44 VPATH=@srcdir@
|
|
45 #endif
|
|
46
|
|
47 #ifndef HAVE_USLEEP
|
|
48 usleep_objs = usleep.o
|
|
49 #endif
|
|
50
|
|
51 progs = xoobr
|
|
52 objs = draw.o tree.o input.o dissolve.o dbl.o intf.o $(usleep_objs)
|
|
53
|
|
54 all : xoobr
|
|
55
|
|
56 xoobr: $(objs)
|
173
|
57 $(CC) $(CFLAGS) $(LDFLAGS) $(objs) $(ldflags) -o $@
|
167
|
58
|
193
|
59 #ifdef SOLARIS2
|
|
60 %.o : %.c
|
|
61 #else
|
|
62 .c.o:
|
|
63 #endif
|
173
|
64 $(CC) $(CFLAGS) $(cflags) -c $<
|
167
|
65
|
|
66 install: $(progs)
|
|
67 ../../lib-src/make-path ${archlibdir}
|
|
68 for file in $(progs); do \
|
|
69 (cd ../.. && $(INSTALL_PROGRAM) pkg-src/tree-x/$${file} ${archlibdir}/$${file}) ; \
|
|
70 done
|
|
71
|
171
|
72 .PHONY: mostlyclean clean distclean realclean extraclean
|
|
73 mostlyclean:
|
|
74 $(RM) *.o *.i core
|
|
75 clean: mostlyclean
|
|
76 $(RM) $(progs)
|
|
77 distclean: clean
|
|
78 $(RM) Makefile Makefile.in TAGS
|
|
79 realclean: distclean
|
|
80 extraclean: distclean
|
|
81 $(RM) *~ \#*
|
|
82
|
167
|
83 size:
|
|
84 wc *.c *.h
|
|
85
|
|
86 ## Dependencies
|
|
87 dbl.o: dbl.h
|
|
88 dissolve.o: dissolve.h
|
171
|
89 draw.o: dissolve.h defs.h tree.h dbl.h intf.h
|
|
90 input.o: defs.h tree.h input.h dbl.h intf.h
|
|
91 intf.o: defs.h tree.h dbl.h intf.h rsrc.h input.h help.h dissolve.h
|
|
92 tree.o: defs.h tree.h dbl.h intf.h
|