Browse Source

Improve Makefile build detection

* bwbasic and renum were broken into their own steps.
 * Dependencies were setup
 * "all" target was made to build both and is the default target
tags/v3.20f
Jon Foster 3 years ago
parent
commit
f81d72d91b
1 changed files with 9 additions and 3 deletions
  1. +9
    -3
      Makefile

+ 9
- 3
Makefile View File

@@ -21,14 +21,20 @@ LIB=-lm
DEST=/usr/bin
# HOME=$HOME

bwbasic:
.PHONY: all
all: bwbasic renum
ls -l bwbasic renum

bwbasic: bw*.c bw*.h
$(CC) $(CFLAGS) -o bwbasic bw*.c $(LIB) -DLINUX

renum: renum.c
$(CC) $(CFLAGS) -o renum renum.c $(LIB)
ls -l bwbasic renum

# bwbasic and renum runtime. editfl temp file created by renum
clean:
rm *.o bwbasic renum editfl core || true
rm *.o bwbasic renum editfl editfl.bas core || true

install:
ls -l bwbasic renum


Loading…
Cancel
Save