File: Makefile.os2

package info (click to toggle)
recode 3.4.1-11
  • links: PTS
  • area: main
  • in suites: slink
  • size: 1,560 kB
  • ctags: 622
  • sloc: ansic: 10,572; perl: 339; makefile: 317; lisp: 243; sh: 173; lex: 165; awk: 127; sed: 10
file content (54 lines) | stat: -rw-r--r-- 1,350 bytes parent folder | download | duplicates (2)
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
# Makefile for recode, adapted for OS2.
# Copyright (C) 1991 Free Software Foundation, Inc.
# Francois Pinard <pinard@iro.umontreal.ca>, 1988.

release:
	$(MAKE) -f Makefile.os2 all CC="gcc -Zomf -Zmtd -O -s" O=".obj" \
	LDEFS="-Zstack 512"
debug:
	$(MAKE) -f Makefile.os2 all CC="gcc -g" O=".o"

DEFS = -DHAVE_CONFIG_H=1

CFLAGS = -I. $(DEFS)
LDFLAGS = $(LDEFS)
LIBS = 

STEPOBJS = charset$O charset1$O charset2$O applemac$O atarist$O bangbang$O \
	cdcnos$O ebcdic$O flat$O ibmpc$O iconqnx$O lat1asci$O \
	lat1html$O lat1ltex$O lat1txte$O next$O merged$O

C_STEPS = charset1.c charset2.c applemac.c atarist.c bangbang.c \
	cdcnos.c ebcdic.c flat.c ibmpc.c iconqnx.c lat1asci.c \
	lat1html.c lat1ltex.c lat1txte.c next.c

L_STEPS = ascilat1.l ltexlat1.l txtelat1.l

LIBOBJS = xmalloc$O xstrdup$O getopt$O getopt1$O error$O argmatch$O

OBJECTS = recode$O charname$O $(STEPOBJS) $(LIBOBJS)

.SUFFIXES: . $O

.c$O:
	$(CC) -c $(CFLAGS) $<

all: recode.exe recode.info

recode.exe: $(OBJECTS)
	$(CC) $(LDFLAGS) -o $@ $(OBJECTS) $(LIBS)

recode.info: recode.texi
	makeinfo recode.texi

initstep.h: $(C_STEPS) merged.c
	sed -n "s/\(module_[^ ]*\).*/  \\1 ();/p" \
	$(C_STEPS) merged.c >initstep.h

config.h: config_h.os2
	copy config_h.os2 config.h

$(OBJECTS): config.h
recode$O charname$O $(STEPOBJS): recode.h
recode$O: initstep.h
charname$O: charname.h