File: Makefile

package info (click to toggle)
word2x 1.5-2
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 228 kB
  • ctags: 326
  • sloc: cpp: 3,076; ansic: 350; makefile: 64
file content (46 lines) | stat: -rw-r--r-- 970 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
# $Id: Makefile,v 1.5 1997/03/31 23:14:18 dps Exp $
#
#Makefile for word2x
#Test system is
# Linux 2.1.28, gcc 2.7.2, libc 5.4.27
#
# My demo of it actually compiling is in compile-log

CPPFLAGS=-g -Wall
LIBOBJS=wordwrap.o nullproc.o tblock.o scan_num.o map_chars.o col-align.o \
	ukdate.o usdate.o
AR=ar
RANLIB=ranlib
LD=ld
MYLIBS=liboutfmt.a
READER=reader.o
FMTS=fmt-text.o fmt-latex.o
CPP=g++
PROGOBJS=$(READER) $(FMTS) word2x.o $(MYLIBS) 
DESTDIR=""

all:	word2x rtest2

clean:
	rm -f *.o
	rm $(MYLIBS)

liboutfmt.a: $(LIBOBJS)
	$(AR) rc $@ $(LIBOBJS)
	$(RANLIB) $@

rtest2:	rtest2.o reader.o tblock.o
	g++ -o rtest2 rtest2.o reader.o tblock.o

fmt-text.o: text-fmt.o text-table.o
	$(LD) -r -o $@ text-fmt.o text-table.o

fmt-latex.o: latex-fmt.o latex-table.o latex-embed.o
	$(LD) -r -o $@ latex-fmt.o latex-table.o latex-embed.o

word2x: $(PROGOBJS)
	$(CPP) -o $@ $(PROGOBJS)

install:
	install -s word2x $(DESTDIR)/usr/bin/
	install -s rtest2 $(DESTDIR)/usr/bin/