File: Makefile

package info (click to toggle)
lurkftp 1.00-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 324 kB
  • ctags: 375
  • sloc: ansic: 4,551; sh: 186; makefile: 162
file content (66 lines) | stat: -rw-r--r-- 1,654 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# This makefile is too simple to require autoconf/imake/whatever.
# Edit as needed if SOCKS support or non-GCC/Linux support is needed.

#For SOCKS support, uncomment following lines
#SOCKS=-DSOCKS
#SLIB=-lsocks

#For broken (pre glibc2.1) versions of glibc
#and any other system that doesn't make semctl(2) vararg
#note that this assumes that union semun is defined by the headers
SEMCTLD=-DSEMCTL_NEEDS_ARG

#For systems that don't support ESIZE; used for hack around idiotic regex size
#limit
#REFLG=-DREG_ESIZE=0

# GCC:
CC=gcc -D_XOPEN_SOURCE=1 -D_XOPEN_SOURCE_EXTENDED=1 -D_GNU_SOURCE=1 -Wall -Wwrite-strings -Wstrict-prototypes $(SEMCTLD)
# XOPEN compliant systems:
#CC=c89 -D_XOPEN_SOURCE=1 -D_XOPEN_SOURCE_EXTENDED=1 # Sun: -D__EXTENSIONS__

#gcc
CFLAGS=-g3
#cc
#CFLAGS=-O

#for Solaris:
#LIBS=-lsocket -lnsl

IDIR=/u2/h0/dark
IDIR=/usr/local
BINDIR=$(IDIR)/bin
MANDIR=$(IDIR)/man

INSTALL=install -c
INSTSTRIP=-s
INSTFLAGS=

EXE = lurkftp pipe
SCRIPT = atcron

all: $(EXE)

OBJS = lurkftp.o opt.o diff.o rept.o mir.o misc.o ftp.o ftpsupt.o break_lp.o

pipe: pipe.o
	$(CC) -o $@ pipe.o

lurkftp: $(OBJS) $(LIB)
	$(CC) -o $@ $(OBJS) $(LIB) $(LIBS) $(SLIB)

install: $(EXE)
	$(INSTALL) -d $(DESTDIR)$(BINDIR)
	$(INSTALL) $(INSTFLAGS) $(INSTSTRIP) $(EXE) $(DESTDIR)$(BINDIR)
	$(INSTALL) $(INSTFLAGS) $(SCRIPT) $(DESTDIR)$(BINDIR)
	rm -f $(DESTDIR)$(MANDIR)/man1/lurkftp.1 $(DESTDIR)$(MANDIR)/man1/lurkftp.1.gz $(DESTDIR)$(MANDIR)/man1/lurkftp.1.Z
	$(INSTALL) -d $(DESTDIR)$(MANDIR)/man1
	$(INSTALL) lurkftp.1 $(DESTDIR)$(MANDIR)/man1/lurkftp.1

$(OBJS): lurkftp.h ftpsupt.h ftp.h

clean:
	rm -f *.o core

realclean: clean
	rm -f $(EXE) .chk* *.bak