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
|
|
37 #ifdef USE_GNU_MAKE
|
|
38 vpath %.c @srcdir@
|
|
39 vpath %.h @srcdir@
|
|
40 #else
|
|
41 VPATH=@srcdir@
|
|
42 #endif
|
|
43
|
|
44 #ifndef HAVE_USLEEP
|
|
45 usleep_objs = usleep.o
|
|
46 #endif
|
|
47
|
|
48 progs = xoobr
|
|
49 objs = draw.o tree.o input.o dissolve.o dbl.o intf.o $(usleep_objs)
|
|
50
|
|
51 all : xoobr
|
|
52
|
|
53 xoobr: $(objs)
|
|
54 $(CC) $(objs) $(ldflags) -o $@
|
|
55
|
|
56 cflags = $(CFLAGS) -DHAVE_CONFIG_H -I${build_top}/src $(CPPFLAGS) $(c_switch_all)
|
|
57 ldflags = $(LDFLAGS) $(ld_switch_all) -lXaw $(ld_libs_all)
|
|
58
|
|
59 .c.o :
|
|
60 ${CC} -c $(cflags) $<
|
|
61
|
|
62 install: $(progs)
|
|
63 ../../lib-src/make-path ${archlibdir}
|
|
64 for file in $(progs); do \
|
|
65 (cd ../.. && $(INSTALL_PROGRAM) pkg-src/tree-x/$${file} ${archlibdir}/$${file}) ; \
|
|
66 done
|
|
67
|
|
68 clean:
|
|
69 $(RM) $(progs) *.o *.i *.orig *.rej core *~
|
|
70
|
|
71 size:
|
|
72 wc *.c *.h
|
|
73
|
|
74 ## Dependencies
|
|
75 dbl.o: dbl.h
|
|
76 dissolve.o: dissolve.h
|
|
77 draw.o: defs.h tree.h dbl.h intf.h
|
|
78 input.o: defs.h tree.h input.h
|
|
79 intf.o: defs.h tree.h dbl.h intf.h rsrc.h input.h help.h
|
|
80 tree.o: defs.h tree.h intf.h
|