File: Makefile.ncu

package info (click to toggle)
bwbasic 2.20pl2-11
  • links: PTS
  • area: main
  • in suites: buster, jessie-kfreebsd, stretch, wheezy
  • size: 1,236 kB
  • sloc: ansic: 21,001; makefile: 80
file content (128 lines) | stat: -rw-r--r-- 3,616 bytes parent folder | download | duplicates (8)
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
126
127
128
# Generated automatically from Makefile.in by configure.
#               Unix Makefile for Bywater BASIC Interpreter

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

srcdir = .
VPATH = .

CC = cc

INSTALL = cp
INSTALL_PROGRAM = $(INSTALL)
INSTALL_DATA = $(INSTALL)

DEFS =  -DHAVE_STRING=1 -DHAVE_STDLIB=1 -DHAVE_RAISE=1 -DHAVE_UNISTD=1

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

# Revised by JBV
#LDFLAGS = -s

prefix = /usr/local
exec_prefix = $(prefix)
bindir = $(exec_prefix)/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

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_ncu.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
 
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_ncu.o
 
#HFILES=         bwbasic.h bwb_mes.h bwx_tty.h
HFILES=         bwbasic.h bwb_mes.h bwx_ncu.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 bwx_ncu.c bwx_ncu.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
#all: bwbasic
all: bwbasic renum

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

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

$(OFILES):      $(HFILES)

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

install: all
	$(INSTALL_PROGRAM) bwbasic $(bindir)/bwbasic

uninstall:
	rm -f $(bindir)/bwbasic

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)

clean:
	rm -f *.o bwbasic 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: