source: branches/ithildin-1.1/source/Makefile.in @ 582

Revision 582, 1.7 KB checked in by wd, 7 years ago (diff)

And chuck 'et' from the Makefiles' vim settings!

  • Property svn:keywords set to Id Rev
Line 
1###############################################################################
2#
3# source/Makefile.in: make file for the source directory.  Any tweaking should
4# be done in ../Makefile as far as compiler flags/etc, or done with configure.
5#
6# Copyright 2002 the Ithildin Project.
7# See the COPYING file for more information on licensing and use.
8#
9# $Id$
10#
11###############################################################################
12
13prefix = @prefix@
14exec_prefix = @exec_prefix@
15
16CC = @CC@
17CCDLL = @CCDLL@
18CFLAGS = @CFLAGS@
19CFLAGSDLL = @CFLAGS@ @CFLAGSDLL@
20LDFLAGS = @LDFLAGS@
21LDFLAGSDLL = @LDFLAGS@ @LDFLAGSDLL@
22CTAGS = @CTAGS@
23LIBS = @LIBS@
24CONFPATH = @sysconfdir@@DIRSUFFIX@
25LIBPATH = @libdir@@DIRSUFFIX@
26DATAPATH = @datadir@@DIRSUFFIX@
27INCLUDES = -I../include -I.
28PACKAGE = @PACKAGE@
29REPOVER ?= 0
30
31# the source files
32SOURCES = conf.c event.c hash.c log.c main.c malloc.c md5.c module.c    \
33          socket.c string.c timer.c util.c
34OBJECTS = $(SOURCES:.c=.o)
35
36default: all
37
38all: $(OBJECTS) md5sum
39        $(CC) $(LDFLAGS) -o $(PACKAGE) $(OBJECTS) $(LIBS)
40        ls -l $(PACKAGE)
41
42# generic compile ruleset
43.c.o:
44        $(CC) $(CFLAGS) $(INCLUDES) -c $<
45# special stuff:
46main.o:
47        $(CC) $(CFLAGS) $(INCLUDES) -DCONF_PATH="\"$(CONFPATH)\"" -DLIB_PATH="\"$(LIBPATH)\"" -DDATA_PATH="\"$(DATAPATH)\"" -DCOMP_FLAGS="\"$(CFLAGS)\"" -DCOMP_FLAGS_MOD="\"$(CFLAGSDLL)\"" -DCOMP_LDFLAGS="\"$(LDFLAGS)\"" -DCOMP_LDFLAGS_MOD="\"$(LDFLAGSDLL)\"" -DREPOVER=$(REPOVER) -c main.c
48
49md5sum: md5sum.o
50        $(CC) $(LDFLAGS) -o md5sum md5sum.o md5.o $(LIBS)
51
52# file dependencies
53%.d: %.c
54        @set -e; $(CC) -M $(CFLAGS) $(INCLUDES) $< \
55            | sed 's/\($*\)\.o[ :]*/\1.o $@ : /g' > $@; \
56            test -s $@ || rm -f $@
57-include $(SOURCES:.c=.d)
58
59# vi:set ts=8 sts=4 sw=4 tw=76:
Note: See TracBrowser for help on using the repository browser.