File: Makefile.win

package info (click to toggle)
swi-prolog 3.1.0-2
  • links: PTS
  • area: main
  • in suites: slink
  • size: 8,772 kB
  • ctags: 12,869
  • sloc: ansic: 43,657; perl: 12,577; lisp: 4,359; sh: 1,534; makefile: 798; awk: 14
file content (81 lines) | stat: -rw-r--r-- 2,066 bytes parent folder | download | duplicates (5)
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
# SWI-Prolog 1.9.4 Makefile for MS-Windows
# Compiler: WATCOM C/C++-32 version 9.50

.NOCHECK

srcdir = \jan\src\pl

prefix = C:
exec_prefix = $(prefix)
bindir = $(exec_prefix)\bin
libdir = $(exec_prefix)\lib
mandir = $(prefix)\man\man1
manext = 1
PLVERSION=1.9.5
DEFSTARTUP=_plrc

CC = wcc386
LD = wlink system win386
LDFLAGS =
AWK = awk

INSTALL = copy
INSTALL_PROGRAM = copy
INSTALL_DATA = copy

DEFS = /dMD="config/windows.h"
LIBS = 

CFLAGS = /bt=windows /oelirt /fpc -I..\..\
#CFLAGS = /bt=windows /d2 /fpc -I..\..\
#CFLAGS = /bt=windows /d1 /fpc -I..\..\
LDFLAGS = 

OBJ1=	pl-wam.obj pl-save.obj &
	pl-atom.obj pl-arith.obj pl-bag.obj pl-comp.obj pl-dump.obj &
	pl-dwim.obj pl-ext.obj pl-file.obj pl-flag.obj pl-fmt.obj &
	pl-funct.obj pl-gc.obj pl-glob.obj pl-itf.obj pl-list.obj &
	pl-load.obj pl-modul.obj pl-op.obj pl-os.obj pl-prims.obj &
	pl-pro.obj pl-proc.obj pl-prof.obj pl-read.obj pl-rec.obj &
	pl-setup.obj pl-sys.obj pl-table.obj pl-trace.obj pl-util.obj &
	pl-wic.obj pl-write.obj pl-term.obj pl-buffe.obj pl-dde.obj
OBJ2=	pl-main.obj
EXT=	pl-exten.obj

OBJS=	$(OBJ1) $(OBJ2) $(EXT)
HDRS=	pl-buffer.h pl-ctype.h pl-funcs.h pl-incl.h pl-itf.h &
	pl-main.h pl-os.h pl-save.h sun-types.h

all:		pl.exe
		@%null

.c.obj:
		$(CC) /zq $(CPPFLAGS) $(DEFS) $(CFLAGS) $*.c

pl.exe:		$(OBJS) ..\..\readline\readline.lib
		$(LD) NAME pl @pl.lnk
		wbind pl -q

pl-main.obj:	pl-main.c parms.h
pl-setup.obj:	pl-setup.c parms.h

parms.h:	makefile
		@echo $#define PLHOME       "$(srcdir)"         > $@
		@echo $#define DEFSTARTUP   "$(DEFSTARTUP)"    >> $@
		@echo $#define PLVERSION    "$(PLVERSION)"     >> $@
		@echo $#define ARCH	    "windows"          >> $@
		@echo $#define C_LIBS	    "-lreadline -lxos" >> $@
		@echo $#define C_STATICLIBS ""                 >> $@
		@echo $#define C_CC	    "$(CC)"            >> $@
		@echo $#define C_LDFLAGS    ""                 >> $@

setup.exe:	setup.obj
		$(LD) NAME setup DEBUG all OPTION quiet FILE setup.obj
		wbind setup -n -q
		

clean:
		del *.obj
	        del *.??~
                del *.?~
	        del *.~