1 | |
---|
2 | bindir = @bindir@ |
---|
3 | datadir = @datadir@ |
---|
4 | datarootdir = @datarootdir@ |
---|
5 | exec_prefix = @exec_prefix@ |
---|
6 | includedir = @includedir@ |
---|
7 | libdir = @libdir@ |
---|
8 | mandir = @mandir@ |
---|
9 | prefix = @prefix@ |
---|
10 | srcdir = @srcdir@ |
---|
11 | |
---|
12 | SHELL = @SHELL@ |
---|
13 | INSTALL = @INSTALL@ |
---|
14 | MKDIR_P = @MKDIR_P@ |
---|
15 | |
---|
16 | CXX = @CXX@ |
---|
17 | CC = @CC@ |
---|
18 | CFLAGS_DEBUG = @CFLAGS_DEBUG@ -Wall |
---|
19 | CFLAGS_OPTIMIZE = @CFLAGS_OPTIMIZE@ |
---|
20 | STLIB_LD = @STLIB_LD@ |
---|
21 | SHLIB_LD = @SHLIB_LD@ |
---|
22 | SHLIB_CFLAGS = @SHLIB_CFLAGS@ |
---|
23 | SHLIB_LDFLAGS = @CC_SEARCH_FLAGS@ |
---|
24 | SHLIB_SUFFIX = @SHLIB_SUFFIX@ |
---|
25 | CFLAGS_DEFAULT = @CFLAGS_DEFAULT@ |
---|
26 | LIB_SEARCH_DIRS = @LIB_SEARCH_DIRS@ |
---|
27 | CFLAGS = @CFLAGS@ -fPIC |
---|
28 | TCL_VERSION = @TCL_VERSION@ |
---|
29 | TCL_LIB_SPEC = @TCL_LIB_SPEC@ |
---|
30 | TK_LIB_SPEC = @TK_LIB_SPEC@ |
---|
31 | LIB_SEARCH_DIRS = @LIB_SEARCH_DIRS@ |
---|
32 | LIB_RUNTIME_DIR = $(libdir) |
---|
33 | HAVE_NCURSES = @HAVE_LIBNCURSES@ |
---|
34 | |
---|
35 | CC_SWITCHES = $(CFLAGS) $(CFLAGS_DEBUG) $(INCLUDES) $(DEFINES) |
---|
36 | CXX_SWITCHES = $(CFLAGS) $(CFLAGS_DEBUG) $(INCLUDES) $(DEFINES) |
---|
37 | |
---|
38 | INCLUDES = \ |
---|
39 | -I$(srcdir) \ |
---|
40 | -I$(includedir) |
---|
41 | |
---|
42 | LIBS = \ |
---|
43 | $(TCL_LIB_SPEC) |
---|
44 | |
---|
45 | version = @PACKAGE_VERSION@ |
---|
46 | DEFINES = -DPACKAGE_VERSION=\"$(version)\" |
---|
47 | |
---|
48 | RANLIB = @RANLIB@ |
---|
49 | AR = ar |
---|
50 | VPATH = $(srcdir) |
---|
51 | RM = rm -f |
---|
52 | |
---|
53 | CDEBUGFLAGS = -g -Wall |
---|
54 | |
---|
55 | |
---|
56 | OBJS = \ |
---|
57 | init.o \ |
---|
58 | daemon.o \ |
---|
59 | op.o \ |
---|
60 | rlimit.o \ |
---|
61 | rusage.o \ |
---|
62 | signal.o \ |
---|
63 | slice.o \ |
---|
64 | switch.o \ |
---|
65 | sysinfo.o |
---|
66 | |
---|
67 | ifeq ($(WIN32),"") |
---|
68 | OBJS += winResource.o |
---|
69 | endif |
---|
70 | |
---|
71 | ifeq ($(HAVE_LIBCURSES),yes) |
---|
72 | OBJS += curses.o |
---|
73 | LIBS += -lncurses |
---|
74 | endif |
---|
75 | |
---|
76 | name = RapptureSystem$(version) |
---|
77 | libname = $(name) |
---|
78 | lib = $(libname)$(SHLIB_SUFFIX) |
---|
79 | destdir = $(libdir)/$(name) |
---|
80 | |
---|
81 | .PHONY: all install clean distclean |
---|
82 | |
---|
83 | all: $(lib) |
---|
84 | |
---|
85 | $(lib): $(OBJS) |
---|
86 | $(SHLIB_LD) $(SHLIB_LDFLAGS) -o $@ $(OBJS) \ |
---|
87 | $(LIB_SEARCH_DIRS) $(LIBS) |
---|
88 | |
---|
89 | install: $(lib) |
---|
90 | $(MKDIR_P) -m 0755 $(destdir) |
---|
91 | $(INSTALL) -m 0555 $(lib) $(destdir) |
---|
92 | $(INSTALL) -m 0444 pkgIndex.tcl $(destdir) |
---|
93 | |
---|
94 | .cpp.o: |
---|
95 | $(CXX) $(CXX_SWITCHES) -c $? |
---|
96 | .c.o: |
---|
97 | $(CC) $(CC_SWITCHES) -c $? |
---|
98 | |
---|
99 | clean: |
---|
100 | $(RM) $(OBJS) $(lib) |
---|
101 | |
---|
102 | distclean: clean |
---|
103 | $(RM) Makefile pkgIndex.tcl *~ |
---|
104 | |
---|