File: makefile

package info (click to toggle)
libwn6 6.0-12
  • links: PTS
  • area: main
  • in suites: woody
  • size: 6,004 kB
  • ctags: 3,903
  • sloc: ansic: 45,078; makefile: 958; csh: 274; sh: 26
file content (39 lines) | stat: -rwxr-xr-x 830 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
31
32
33
34
35
36
37
38
39
#!gmake

ADDCFLAGS = -g
CC = cc
CFLAGS = $(ADDCFLAGS) -I../h
ARCHIVE = text.a
OBJS = wntrn.o wntrnf.o wntrni.o wntrns.o \
       wnspcon.o wnstrn.o wnspcpy.o wnspio.o wnspmk.o wnsprnd.o \
       wnspcnt.o wnlp.o \
       wncp.o wnsp.o
LIBS = ../vect/text.a ../list/text.a ../btr/text.a ../hash/text.a ../cpy/text.a ../cmp/text.a ../random/text.a ../mem/text.a ../low/text.a

compile:	$(ARCHIVE) examples

$(ARCHIVE): $(OBJS)
	rm -f $(ARCHIVE)
#	ar slrcu $(ARCHIVE) $(OBJS)
#	ar lrcu $(ARCHIVE) $(OBJS)
#	ranlib $(ARCHIVE)
	$(AR) $(ARCHIVE) $(OBJS)
	$(RANLIB) $(ARCHIVE)

examples: examples.o $(ARCHIVE)
	$(CC) -o examples examples.o $(ARCHIVE) $(LIBS) -lm

clean:
	set nonomatch; rm -f *.o
	rm -f $(ARCHIVE)
	rm -f examples
	rm -f core errors.txt tmp

man:
	./manscript.csh

hfiles:
	./hscript.csh

all: clean compile hfiles man