File: Makefile.in

package info (click to toggle)
bwbasic 2.20pl2-11
  • links: PTS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch, wheezy
  • size: 1,236 kB
  • sloc: ansic: 21,001; makefile: 80
file content (125 lines) | stat: -rw-r--r-- 3,231 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
#               Unix Makefile for Bywater BASIC Interpreter

##---------------------------------------------------------------##
## NOTE: Modifications marked "JBV" were made by Jon B. Volkoff, ##
## 11/1995 (eidetics@cerf.net).                                  ##
##---------------------------------------------------------------##

srcdir = @srcdir@
VPATH = @srcdir@

CC = @CC@

DEFS = @DEFS@

# Revised by JBV
#CFLAGS = -O
CFLAGS = -g -ansi

# Revised by JBV
#LDFLAGS = -s

# Modified by Vince Mulhollon
BIN = $(DESTDIR)/usr/bin/

SHELL = /bin/sh

CFILES=         bwbasic.c bwb_int.c bwb_tbl.c bwb_cmd.c bwb_prn.c\
                bwb_exp.c bwb_var.c bwb_inp.c bwb_fnc.c bwb_cnd.c\
                bwb_ops.c bwb_dio.c bwb_str.c bwb_elx.c bwb_mth.c\
		bwb_stc.c bwb_par.c bwx_tty.c

OFILES=         bwbasic.o bwb_int.o bwb_tbl.o bwb_cmd.o bwb_prn.o\
                bwb_exp.o bwb_var.o bwb_inp.o bwb_fnc.o bwb_cnd.o\
                bwb_ops.o bwb_dio.o bwb_str.o bwb_elx.o bwb_mth.o\
		bwb_stc.o bwb_par.o bwx_tty.o
 
HFILES=         bwbasic.h bwb_mes.h bwx_tty.h
 
MISCFILES=	COPYING INSTALL Makefile.in README bwbasic.doc\
		bwbasic.mak configure.in configure makefile.qcl\
		bwb_tcc.c bwx_iqc.c bwx_iqc.h

TESTFILES=	\
	abs.bas	      assign.bas    callfunc.bas  callsub.bas	chain1.bas\
	chain2.bas    dataread.bas  deffn.bas	  dim.bas	doloop.bas\
	dowhile.bas   elseif.bas    end.bas	  err.bas	fncallfn.bas\
	fornext.bas   function.bas  gosub.bas	  gotolabl.bas	ifline.bas\
	index.txt     input.bas	    lof.bas	  loopuntl.bas	main.bas\
	mlifthen.bas  on.bas	    onerr.bas	  onerrlbl.bas	ongosub.bas\
	opentest.bas  option.bas    putget.bas	  random.bas	selcase.bas\
	snglfunc.bas  stop.bas	    term.bas	  whilwend.bas	width.bas\
	writeinp.bas  pascaltr.bas

DISTFILES=	$(CFILES) $(HFILES) $(MISCFILES)

# Revised by JBV
# Vince Mulhollon added bwbasic.1
all: bwbasic bwbasic.1 renum

bwbasic:	$(OFILES)
		$(CC) $(OFILES) -lm -o $@ $(LDFLAGS)

# Added by JBV
renum:
	$(CC) renum.c -o renum

# Added by Vince Mulhollon
bwbasic.1: bwbasic.doc
	set -e; \
	exec > $@; \
	echo '.TH BWBASIC 1 "October 11, 1993"'; \
	echo '.SH NAME'; \
	echo 'bwbasic \- Bywater BASIC interpreter/shell'; \
	echo '.RE'; \
	echo '.nf'; \
	expand $<

$(OFILES):      $(HFILES)

.c.o:
	$(CC) -c $(CPPFLAGS) -I$(srcdir) $(DEFS) $(CFLAGS) $<

install: ${ALL}
	mkdir -p ${BIN}
	install bwbasic ${BIN}
	install renum ${BIN}

uninstall:
	rm -f $(bindir)/bwbasic $(bindir)/renum

Makefile: Makefile.in config.status
	$(SHELL) config.status
config.status: configure
	$(SHELL) config.status --recheck
configure: configure.in
	cd $(srcdir); autoconf

TAGS:	$(CFILES)
	etags $(CFILES)

# Vince Mulhollon added bwbasic.1
clean:
	rm -f *.o bwbasic bwbasic.1 renum core

mostlyclean: clean

distclean: clean
	rm -f Makefile config.status

realclean: distclean
	rm -f TAGS

# Version number changed from 2.10 to 2.20 by JBV
dist: $(DISTFILES)
	echo bwbasic-2.20 > .fname
	rm -rf `cat .fname`
	mkdir `cat .fname`
	ln $(DISTFILES) `cat .fname`
	mkdir `cat .fname`/bwbtest
	cd bwbtest; ln $(TESTFILES) ../`cat ../.fname`/bwbtest
	tar czhf `cat .fname`.tar.gz `cat .fname`
	rm -rf `cat .fname` .fname

# Prevent GNU make v3 from overflowing arg limit on SysV.
.NOEXPORT: