Ticket #21691: patch-Makefile.diff
File patch-Makefile.diff, 960 bytes (added by jim@…, 15 years ago) |
---|
-
Makefile
old new 1 1 PACKAGE=grok 2 2 PREFIX=/usr/local 3 INSTALL_USER=root 4 INSTALL_GROUP=root 3 5 4 6 CFLAGS+=-pipe -fPIC 5 7 #CFLAGS+=-pg -g 6 8 CFLAGS+=-O2 … … 115 117 .c.o: 116 118 $(CC) -c $(CFLAGS) $< -o $@ 117 119 118 120 install: libgrok.so grok 119 install -m 755 -o root -g root grok $(PREFIX)/bin 120 install -m 644 -o root -g root libgrok.so $(PREFIX)/lib 121 for dirname in bin lib include; do \ 122 mkdir -p $(PREFIX)/$$dirname; \ 123 done 124 install -m 755 -o $(INSTALL_USER) -g $(INSTALL_GROUP) grok $(PREFIX)/bin/. 125 install -m 644 -o $(INSTALL_USER) -g $(INSTALL_GROUP) libgrok.so $(PREFIX)/lib/. 121 126 for header in grok.h grokre.h grok_pattern.h grok_capture.h grok_capture_xdr.h grok_match.h grok_logging.h; do \ 122 install -m 644 -o root -g root $$header $(PREFIX)/include; \127 install -m 644 -o $(INSTALL_USER) -g $(INSTALL_GROUP) $$header $(PREFIX)/include/.; \ 123 128 done 124 129