File: Makefile

package info (click to toggle)
mailto 1.3.2-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 124 kB
  • ctags: 137
  • sloc: ansic: 739; makefile: 88; perl: 20
file content (36 lines) | stat: -rw-r--r-- 633 bytes parent folder | download | duplicates (3)
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
PROJECT = mailto
VERSION = 1.3

PREFIX = /usr/machine/etc/httpd

BINDIR = $(PREFIX)/cgi-bin

SOURCES = mailto.c util.c
OBJECTS = mailto.o util.o
TARGETS = mailto

INSTALL = bsdinst
INSTALL_PROGRAM = $(INSTALL) -s -m 555

all: $(TARGETS)

mailto: $(OBJECTS)
	$(CC) $(CFLAGS) $(OBJECTS) -o $@

install: all
	test -d $(BINDIR) || mkdir -p $(BINDIR)
	$(INSTALL_PROGRAM) mailto $(BINDIR)

clean:
	rm -f *.o core $(TARGETS)

dist: clean
	cd ..; 	tar cf - $(PROJECT)-$(VERSION) | gzip -9 >$(PROJECT)-$(VERSION).tar.gz

check:
	lint -u $(SOURCES)
	gcc -Wall -fsyntax-only $(SOURCES)

depend:
	makedepend -- $(CFLAGS) $(COPTS) -- $(SOURCES)