blob: 767e81ef58864c964cb2d2d05b34f9b93f87895b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
--- Makefile.orig Mon Nov 29 16:45:38 2004
+++ Makefile Sun Oct 30 14:48:01 2005
@@ -1,7 +1,5 @@
-PREFIX = /usr/local
LIBDIR = lib/nntpswitch
-PERL = /usr/bin/perl
PROG = nntpswitchd
INSTUTILS= nsstats.pl nsstats.sh updategroups
@@ -50,10 +48,8 @@
DISTNAME = nntpswitch
VERSION = `/bin/sh version.sh`
-CC = gcc
-CFLAGS = -pipe -g -O3 -Wall -DVERSION=\"$(VERSION)\"
-LDFLAGS =
-LIBS = -lm -ldl
+CFLAGS += -DVERSION=\"$(VERSION)\"
+LIBS += -lm
_DIRNAME = $(DISTNAME)
all: protos config aconfig.o $(PROG) $(MODULES) updategroups
@@ -70,6 +66,10 @@
updategroups: $(UGOBJS)
$(CC) $(LDFLAGS) $(CFLAGS) $(LIBS) $(UGOBJS) -o updategroups
+$(OBJS): \
+%.o: %.c
+ $(CC) $(LDFLAGS) $(CFLAGS) -fPIC $< -c -o $@
+
$(PROG): $(OBJS)
$(CC) $(LDFLAGS) $(CFLAGS) $(OBJS) aconfig.o $(LIBS) -o $(PROG)
@@ -140,8 +140,7 @@
install -b $(INSTUTILS) $(PREFIX)/sbin/
@echo "Installing modules in $(PREFIX)/$(LIBDIR)"
@if [ ! -d $(PREFIX)/$(LIBDIR) ]; then mkdir $(PREFIX)/$(LIBDIR); fi
- @for f in $(MODULES) $(CONDMODS); do if [ -f $$f ]; then cp $$f $(PREFIX)/$(LIBDIR)/$$f.$(VERSION); fi; done
- ldconfig
+ @for f in $(MODULES) $(CONDMODS); do if [ -f $$f ]; then cp $$f $(PREFIX)/$(LIBDIR)/$$f; fi; done
help:
@echo "Choose one of the following targets:"
|