File: Makefile

package info (click to toggle)
dirdiff 2.1-9
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 976 kB
  • sloc: sh: 12,944; tcl: 12,939; ansic: 611; makefile: 91
file content (26 lines) | stat: -rw-r--r-- 626 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
23
24
25
26
# Makefile for dirdiff
#
# In fact all we have to make is the libfilecmp.so.0.0 library.

BINDIR=$(DESTDIR)/usr/bin
LIBDIR=$(DESTDIR)/usr/lib
INSTALL=install

# You may need to change the -I arguments depending on your system
CFLAGS+=-O3 -I/usr/include/tcl8.6

SOFLAGS = -fPIC -Wl,-soname,libfilecmp.so.0.0

LIBS = -ltcl8.6

all:	libfilecmp.so.0.0

libfilecmp.so.0.0: filecmp.c
	$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -DUSE_INTERP_RESULT -shared $(SOFLAGS) -o $@ filecmp.c $(LIBS)

install: dirdiff libfilecmp.so.0.0
	$(INSTALL) -c dirdiff $(BINDIR)
	$(INSTALL) -c libfilecmp.so.0.0 $(LIBDIR)

clean:
	rm -f libfilecmp.so.0.0