root/trunk/makefile

Revision 7, 1.2 kB (checked in by jesus, 13 years ago)

All of George's <george@lethargy.org> vhost additions.
New time rewriting so that timestamps are rewritten to reflect the time on the local machine running spreadlogd -- me.

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
Line 
1 CC=gcc
2 CFLAGS=-g -D__USE_LARGEFILE64 -Wall
3 INCLUDES=-I/usr/local/include
4
5 #### BEGIN ARCH DEPENDANT SECTION ####
6 # For Linux
7 LDFLAGS=-L/usr/local/lib -L.
8 LIBS=-lsp -lskiplist
9
10 # For Solaris
11 #LIBS=-lsp -lskiplist -lnsl -lsocket -lucb
12 #LDFLAGS=-L/usr/local/lib -L/usr/ucblib -R/usr/ucblib -L.
13 #BSDINCLUDES=-I/usr/ucbinclude
14 #### END ARCH DEPENDANT SECTION ####
15
16 YACC=bison -y
17 LEX=flex
18
19 OBJS=spreadlogd.o lex.yy.o y.tab.o config.o hash.o timefuncs.o
20 LSLOBJS=skiplist.o
21
22 all:    spreadlogd
23
24 parser: lex.yy.c y.tab.c y.tab.h
25
26 lex.yy.c:       config_gram.l
27         $(LEX) config_gram.l
28 y.tab.c y.tab.h:        config_gram.y
29         $(YACC) -d config_gram.y
30 lex.yy.o: lex.yy.c y.tab.h
31         $(CC) $(CFLAGS) $(INCLUDES) -c lex.yy.c
32 y.tab.o: y.tab.c config.h
33         $(CC) $(CFLAGS) $(INCLUDES) -c y.tab.c
34
35 test.o: test.c
36         $(CC) $(CFLAGS) $(BSDINCLUDES) $(INCLUDES) -c $<
37
38 config.o:       config.c
39         $(CC) $(CFLAGS) $(BSDINCLUDES) $(INCLUDES) -c $<
40 hash.o:         hash.c
41         $(CC) $(CFLAGS) $(BSDINCLUDES) $(INCLUDES) -c $<
42 .c.o:   $*.c
43         $(CC) $(CFLAGS) $(INCLUDES) -c $<
44
45 libskiplist.a:  $(LSLOBJS)
46         $(AR) cq libskiplist.a $(LSLOBJS)
47
48 spreadlogd:     libskiplist.a $(OBJS)
49         $(CC) -g -o $@ $(OBJS) $(LDFLAGS) $(LIBS)
50
51 clean:
52         rm -f *~ *.o spreadlogd libskiplist.a y.tab.h y.tab.c lex.yy.c
Note: See TracBrowser for help on using the browser.