File: Makefile

package info (click to toggle)
newsflash 0.99-3
  • links: PTS
  • area: main
  • in suites: potato
  • size: 272 kB
  • ctags: 114
  • sloc: ansic: 768; sh: 186; makefile: 66
file content (68 lines) | stat: -rw-r--r-- 1,417 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
67
68
# $Id: Makefile,v 1.5 1996/08/07 00:41:01 chris Exp $

# $Log: Makefile,v $
# Revision 1.5  1996/08/07  00:41:01  chris
# version number increased
#
# Revision 1.4  1995/11/12  00:05:52  chris
# *** empty log message ***
#
# Revision 1.3  1995/10/02  01:37:04  chris
# *** empty log message ***
#
# Revision 1.2  1995/10/01  20:53:59  chris
# Added printdate target
#
# Revision 1.1  1995/10/01  18:53:17  chris
# Initial revision
#

CC=gcc
OFLAGS= -g  #-Wall #-DDEBUG #-DSCUMOS

# Which version of Newsflash is this?
VERSION="0.99"
DATE="07 Aug 96"

DEFINES= -DVERSION=\"$(VERSION)\" -DDATE=\"$(DATE)\"

# where to install the binary?
BINPATH=./debian/tmp/usr/bin
SBINPATH=./debian/tmp/usr/sbin

# add any compile flags needed here
CFLAGS= $(OFLAGS) #$(DEFINES)
LFLAGS=

# any libs needed?
LIBS= 

OBJS= tcp.o nntp.o newsflash.o spool.o
SRCS= tcp.c nntp.c newsflash.c spool.c

#######################################################

all:	newsflash printdate

newsflash: $(OBJS) config.h
	$(CC) $(LFLAGS) $(OBJS) -o $@ $(LIBS)

printdate: printdate.c
	$(CC) $(LFLAGS) printdate.c -o $@ $(LIBS)

clean:
	-rm .depend *.o core newsflash printdate

dep:
	$(CC) -M $(SRCS) >.depend

install:
	strip newsflash
	cp -f newsflash $(BINPATH)
	cp -f newsflashconfig $(SBINPATH)
	chown news.news $(BINPATH)/newsflash	

ifeq (.depend,$(wildcard .depend))
include .depend
endif
# THIS LINE IS REQUIRED BY SCUMOS'S BRAINDEAD MAKE.