| 1 |
# Makefile for CLISP module set netica |
| 2 |
# <http://norsys.com/netica_c_api.htm> |
| 3 |
|
| 4 |
srcdir = . |
| 5 |
CC = gcc |
| 6 |
CPPFLAGS = |
| 7 |
CFLAGS = -Wall -O2 |
| 8 |
NETICA = $(NETICA_C_API)/src |
| 9 |
CLISP = clisp -q -norc |
| 10 |
CLISP_LINKKIT = $$($(CLISP) -b)/linkkit |
| 11 |
|
| 12 |
LN = ln |
| 13 |
LN_S = ln -s |
| 14 |
|
| 15 |
MAKE = make |
| 16 |
|
| 17 |
SHELL = /bin/sh |
| 18 |
|
| 19 |
GENERATED = netica.o netica.fas wrap.fas link.sh |
| 20 |
DISTRIBFILES = Makefile $(GENERATED) \ |
| 21 |
$(srcdir)/netica.lisp $(srcdir)/wrap.lisp $(srcdir)/README |
| 22 |
distribdir = |
| 23 |
|
| 24 |
# default target: make the module |
| 25 |
clisp-module : $(GENERATED) |
| 26 |
|
| 27 |
netica.c netica.fas : $(srcdir)/netica.lisp |
| 28 |
$(CLISP) -c $(srcdir)/netica.lisp -o ./ |
| 29 |
|
| 30 |
netica.o : netica.c |
| 31 |
$(CC) $(CPPFLAGS) $(CFLAGS) -I$(CLISP_LINKKIT) -I$(NETICA) -c netica.c |
| 32 |
|
| 33 |
wrap.fas: $(srcdir)/wrap.lisp |
| 34 |
$(CLISP) -c $< -o ./ |
| 35 |
|
| 36 |
link.sh : $(srcdir)/link.sh |
| 37 |
$(LN_S) $(srcdir)/link.sh . |
| 38 |
|
| 39 |
# Make a module distribution into $(distribdir) |
| 40 |
clisp-module-distrib : clisp-module force |
| 41 |
$(LN) $(DISTRIBFILES) $(distribdir) |
| 42 |
|
| 43 |
clean : force |
| 44 |
rm -f core *.o *.a *.fas *.lib |
| 45 |
|
| 46 |
distclean : clean |
| 47 |
|
| 48 |
force : |
| 49 |
|