File: Makefile.in

package info (click to toggle)
swi-prolog 5.2.13-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 55,032 kB
  • ctags: 29,741
  • sloc: ansic: 215,187; perl: 110,995; cpp: 7,687; sh: 3,235; makefile: 3,227; yacc: 843; xml: 31; awk: 14; sed: 12
file content (52 lines) | stat: -rw-r--r-- 1,119 bytes parent folder | download | duplicates (4)
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
################################################################
# Emulate SWI-Prolog C-interface on top of SICStus Prolog
#
# Author:  Jan Wielemaker. jan@swi.psy.uva.nl
# Copying: LGPL-2
################################################################

prefix=@prefix@
SP_PATH=@SP_PATH@
RANLIB=@RANLIB@
AR=@AR@
LIBDIR=$(prefix)/lib
INCLDIR=$(prefix)/include

CC=@CC@
COFLAGS=@COFLAGS@
CWFLAGS=@CWFLAGS@
CMFLAGS=@CMFLAGS@
CIFLAGS=-I. -I$(SP_PATH)/include
CFLAGS=$(COFLAGS) $(CWFLAGS) $(CMFLAGS) $(CIFLAGS) @DEFS@

INSTALL=@INSTALL@
INSTALL_PROGRAM=@INSTALL_PROGRAM@
INSTALL_DATA=@INSTALL_DATA@

OBJ=		swi-stream.o swi.o
TARGET=		libswi.a

all:		$(TARGET)

libswi.a:	$(OBJ)
		rm -f $@
		ar cq $@ $(OBJ)
		$(RANLIB) $@

install:	$(TARGET)
		mkdir -p $(LIBDIR) $(INCLDIR)
		$(INSTALL_DATA) libswi.a $(LIBDIR)
		$(INSTALL_DATA) swi.h $(INCLDIR)
		$(INSTALL_DATA) SWI-Stream.h $(INCLDIR)

uninstall:
		rm -f $(LIBDIR)/libswi.a
		rm -f $(INCLDIR)/swi.h
		rm -f $(INCLDIR)/SWI-Stream.h

clean:		
		rm -f $(OBJ) *~ a.out core

distclean:	clean
		rm -f $(TARGET)
		rm -f config.log config.cache config.status config.h Makefile