File: Makefile

package info (click to toggle)
sortmail 19910421-4
  • links: PTS
  • area: main
  • in suites: slink
  • size: 120 kB
  • ctags: 153
  • sloc: ansic: 1,894; makefile: 46
file content (30 lines) | stat: -rw-r--r-- 469 bytes parent folder | download | duplicates (4)
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

#DBG = -g -DDEBUG
DBG = -O

# SunOS 4.x
#CFLAGS = ${DBG}
#LDFLAGS = -n -Bdynamic -s

# SunOS 5.x
CFLAGS = ${DBG} -DSVr4
LDFLAGS =

#CC = gcc

SRCS = sortmail.c parse.c regex.c

HDRS = sortmail.h regex.h

OBJS = $(SRCS:.c=.o)

DOC = sortmail.1 sample.forward sample.sortmailrc

sortmail: $(OBJS)
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(LIB)

archive: Makefile $(HDRS) $(SRCS) $(DOC)
	shar $(DOC) Makefile $(HDRS) $(SRCS) > archive

clean:
	-rm *.o archive sortmail