Wapp

Forum
Login

Makefile.openbsd

(1) By vetelko on 2019-04-25 19:52:01

Tested on OpenBSD 6.5

#!/usr/bin/make

CC = cc -Os -static
TCLLIB = /usr/local/lib/libtcl85.a -lm -lz -lpthread
TCLINC = /usr/local/include/tcl8.5
TCLSH = tclsh

all: wapptclsh

wapptclsh: wapptclsh.c
    $(CC) -I. -I$(TCLINC) -o $@ wapptclsh.c $(TCLLIB)

wapptclsh.c:    wapptclsh.c.in wapp.tcl wapptclsh.tcl tclsqlite3.c mkccode.tcl
    $(TCLSH) mkccode.tcl wapptclsh.c.in >$@

clean:
    rm wapptclsh wapptclsh.c