Makefile.am 2.25 KB
Newer Older
eg's avatar
eg committed
1 2 3 4
# Makefile.am for STklos source file
#
#           Author: Erick Gallesio [eg@unice.fr]
#    Creation date: 11-Apr-2000 10:30 (eg)
5
# Last file update: 19-Aug-2011 11:07 (eg)
eg's avatar
eg committed
6 7

CC	    = @CC@
8
CFLAGS	    = @CFLAGS@ @STKCFLAGS@
eg's avatar
eg committed
9 10 11 12 13 14 15 16 17 18 19

schemedir   = $(prefix)/share/@PACKAGE@/@VERSION@
extraincdir = $(prefix)/include/@PACKAGE@


bin_PROGRAMS    = stklos
#scheme_DATA     = boot.img
extrainc_DATA   = stklos.h extraconf.h stklosconf.h socket.h fport.h

DOCDB	        = DOCDB

separdau's avatar
separdau committed
20 21 22 23
THREADS     = @THREADS@

# what thread support do we put in?
if PTHREADS
24
  THREAD_FILES = thread-common.c thread-pthreads.c mutex-common.c mutex-pthreads.c
separdau's avatar
separdau committed
25 26
endif
if NO_THREAD
27
  THREAD_FILES = thread-none.c mutex-none.c
separdau's avatar
separdau committed
28 29
endif

30 31
stklos_SOURCES = base64.c boolean.c boot.c box.c char.c \
 cond.c  cpointer.c dynload.c env.c error.c extend.c ffi.c fixnum.c \
32 33
 fport.c gnu-getopt.c gnu-glob.c hash.c keyword.c lib.c \
 list.c misc.c md5.c number.c object.c parameter.c \
34
 path.c port.c print.c proc.c process.c promise.c read.c regexp.c  \
eg's avatar
eg committed
35
 signal.c sio.c socket.c sport.c stklos.c str.c struct.c \
Erick's avatar
Erick committed
36
 symbol.c system.c utf8.c uvector.c vector.c vm.c vport.c $(THREAD_FILES)
eg's avatar
eg committed
37 38 39 40 41 42 43 44


### # The STklos library
### lib_LTLIBRARIES      = libstklos.la
### libstklos_la_SOURCES = boolean.c char.c dynload.c env.c error.c \
### extend.c fport.c hash.c keyword.c lib.c list.c misc.c number.c \
### object.c path.c port.c print.c proc.c process.c promise.c read.c \
### regexp.c signal.c sio.c sport.c  str.c symbol.c system.c \
Erick's avatar
Erick committed
45 46 47
### uvector.c vector.c  vm.c
###
###
eg's avatar
eg committed
48 49 50 51
### stklos_SOURCES = stklos.c

# gtklib		= @GTK_CONFIG_LIBS@

Erick's avatar
Erick committed
52
# COMPAT LIB
eg's avatar
eg committed
53 54 55 56 57
#compatlib       = -L$(top_srcdir)/compat -lcompat

# GC LIBRARY
gc              = @GC@
gclib           = @GCLIB@
separdau's avatar
separdau committed
58
gcinc           = @GCINC@
eg's avatar
eg committed
59

Erick's avatar
Erick committed
60
# GMP LIBRARY
eg's avatar
eg committed
61 62 63 64 65 66 67 68 69
gmp	        = @GMP@
gmplib          = @GMPLIB@
gmpinc	        = @GMPINC@

# PCRE LIBRARY
pcre		= @PCRE@
pcrelib		= @PCRELIB@
pcreinc		= @PCREINC@

Erick's avatar
Erick committed
70 71 72 73 74
# FFI LIBRARY
ffi		= @FFI@
ffilib		= @FFILIB@
ffiinc		= @FFIINC@

Erick's avatar
Erick committed
75
stklos_LDADD   = $(compatlib) $(gmplib) $(pcrelib) $(ffilib) $(gclib) -lm
eg's avatar
eg committed
76
stklos_LDFLAGS = @SH_MAIN_LOAD_FLAGS@
Erick's avatar
Erick committed
77
INCLUDES       = $(gmpinc) $(pcreinc) $(ffiinc) $(gcinc)
eg's avatar
eg committed
78 79 80 81 82 83


struct.o cond.o: struct.h

doc:  $(DOCDB)

Erick's avatar
Erick committed
84
$(DOCDB): $(stklos_SOURCES)
85
	./stklos -b boot.img -c -q -f ../doc/extract-doc $(stklos_SOURCES) > $(DOCDB)
eg's avatar
eg committed
86 87 88 89

clean:
	/bin/rm -f *.o $(DOCDB)