-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.in
More file actions
61 lines (51 loc) · 1.59 KB
/
Makefile.in
File metadata and controls
61 lines (51 loc) · 1.59 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#Neostats Module Makefile
CC = @CC@
CFLAGS = @CFLAGS@
LDFLAGS= @LDFLAGS@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
DIRECTORY = @DIRINST@/modules/
INCLUDES = -I@DIRINST@/include/ -I.
SRCS = floodserv.c floodservhelp.c
OBJS = ${SRCS:.c=.o}
TARGET = floodserv.so
DOCS = README.FloodServ
DATA =
SCRIPTS =
DISTFILES = $(SRCS) $(DOCS) modconfig.h.in configure install-sh ChangeLog Makefile.in floodserv.h LICENSE RELNOTES floodserv.vcproj modconfigwin32.h
DISTDIR = @DISTDIRVERSION@
all: module
@echo "Compilation complete."
@echo "Run 'make install' (or 'gmake install' on some systems) to install."
@echo "If you require support, see the README file."
# include dependency info
@MAKEDEPENDENCIES@
.c.o:
$(CC) -c $(CFLAGS) $(INCLUDES) $<
$(CC) -MM $(INCLUDES) -c $< > $*.d
module: $(OBJS)
$(LD) -shared -o $(TARGET) $(OBJS) $(LDFLAGS)
clean:
/bin/rm -rf $(TARGET) *.o *.d Makefile *.log modconfig.h
distclean:
/bin/rm -rf $(TARGET) *.o *.d Makefile *.log modconfig.h config.status configure.scan
install: module
$(INSTALL) -m 644 $(TARGET) $(DIRECTORY)
$(INSTALL) -m 644 $(DOCS) $(DIRECTORY)../doc/
@echo "Installation complete."
@echo "See the README file for instructions on loading this module."
dist:
@echo -n "Creating directories"
@-rm -rf $(DISTDIR)
@mkdir $(DISTDIR)
@echo "Done"
@echo -n "Copying distribution files"
@for file in $(DISTFILES); do \
echo -n "."; \
cp -pr $$file $(DISTDIR)/$$file; \
done
@echo "Done"
@tar -czf $(DISTDIR).tar.gz $(DISTDIR)/*
@echo "Tar file $(DISTDIR).tar.gz created, Freshmeat Time"
$(OBJS): Makefile