File: Makefile

package info (click to toggle)
libtcl-ldap 1.0-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 180 kB
  • ctags: 305
  • sloc: ansic: 1,435; tcl: 161; makefile: 57
file content (22 lines) | stat: -rw-r--r-- 570 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
CC=gcc
LD=ld
CCFLAGS=-O2 -g -fPIC -Wall
LIBS=-lldap -llber -lc -ltcl8.0
LDFLAGS=-shared
LIBRARY_NAME=tclLdap.so

GENERIC_OBJS=tclLdapBind.o tclLdapDel.o tclLdapModRDN.o tclLdapSearch.o \
tclLdapUnBind.o tclLdapModify.o tclAppInit.o

$(LIBRARY_NAME): $(GENERIC_OBJS)
	$(LD) $(LDFLAGS) -o $(LIBRARY_NAME) $(GENERIC_OBJS) $(LIBS)

install: $(LIBRARY_NAME)
	install -d -m 755 -o root -g root $(DESTDIR)/usr/lib
	install -m 644 -o root -g root $(LIBRARY_NAME) $(DESTDIR)/usr/lib

clean::
	$(RM) -f $(GENERIC_OBJS) $(LIBRARY_NAME) core

.c.o: $<
	$(CC) -c $(CCFLAGS) $< -o $@