File: Makefile

package info (click to toggle)
ulogd 1.02-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 708 kB
  • ctags: 394
  • sloc: sh: 2,694; ansic: 2,582; makefile: 170
file content (31 lines) | stat: -rw-r--r-- 592 bytes parent folder | download | duplicates (5)
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
# Generated automatically from Makefile.in by configure.
#

#  Normally You should not need to change anything below
#
include ../Rules.make

CFLAGS+=-I.. -I../libipulog/include -I../include
SH_CFLAGS:=$(CFLAGS) -fPIC

SHARED_LIBS=ulogd_MYSQL.so

all: $(SHARED_LIBS)

distrib:

$(SHARED_LIBS): %.so: %_sh.o
	$(LD) -shared $(MYSQL_LDFLAGS) -o $@ $< -lc

%_sh.o: %.c
	$(CC) $(MYSQL_CFLAGS) $(SH_CFLAGS) -o $@ -c $<
	
clean:
	$(RM) $(SHARED_LIBS) *.o

distclean:
	$(RM) Makefile

install: all
	$(INSTALL) -m 755 -d $(DESTDIR)$(ULOGD_LIB_PATH)
	$(INSTALL) -m 755 *.so $(DESTDIR)$(ULOGD_LIB_PATH)