forked from SWI-Prolog/packages-semweb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.mak
69 lines (54 loc) · 1.58 KB
/
Makefile.mak
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
################################################################
# Build the SWI-Prolog semantic web package for MS-Windows
#
# Author: Jan Wielemaker
#
# Use:
# nmake /f Makefile.mak
# nmake /f Makefile.mak install
################################################################
PLHOME=..\..
!include ..\..\src\rules.mk
!include common.mk
MAKEINDEXSEMWEB=chdir "$(PLBASE)" & del library\semweb\INDEX.pl & bin\swipl.exe \
-f none -F none \
-g make_library_index('library/semweb') \
-t halt
LIBDIR= $(PLBASE)\library\semweb
PKGDLL=rdf_db
OBJ= rdf_db.obj md5.obj avl.obj atom_map.obj atom.obj \
lock.obj debug.obj hash.obj murmur.obj
all: $(PKGDLL).dll turtle.dll
$(PKGDLL).dll: $(OBJ)
$(LD) /dll /out:$@ $(LDFLAGS) $(OBJ) $(PLLIB) $(LIBS)
turtle.dll: turtle.obj
$(LD) /dll /out:$@ $(LDFLAGS) turtle.obj $(PLLIB) $(LIBS)
turtle.obj: turtle.c turtle_chars.c
install: idll ilib
idll::
copy $(PKGDLL).dll "$(BINDIR)"
copy turtle.dll "$(BINDIR)"
ilib::
if not exist "$(LIBDIR)/$(NULL)" $(MKDIR) "$(LIBDIR)"
@echo Copying $(LIBPL)
@for %f in ($(LIBPL)) do @copy %f "$(LIBDIR)"
@for %f in ($(DATA)) do @copy %f "$(LIBDIR)"
copy README "$(LIBDIR)\README.TXT"
$(MAKEINDEX)
$(MAKEINDEXSEMWEB)
html-install::
copy semweb.html "$(PKGDOC)"
copy modules.gif "$(PKGDOC)"
pdf-install:
copy semweb.pdf "$(PKGDOC)"
xpce-install::
uninstall::
del "$(PLBASE)\bin\$(PKGDLL).dll"
cd $(LIBDIR) & del $(LIBPL) $(DATA) README.TXT
rmdir $(LIBDIR)
$(MAKEINDEX)
clean::
if exist *.obj del *.obj
if exist *~ del *~
distclean: clean
-DEL *.dll *.lib *.exp *.pdb *.ilk 2>nul