Debian Codegraph @

ipl/cfuncs/Makefile

raw
1 # Makefile for the dynamically loaded C function library.
2 #
3 # If building with the compiler (instead of the interpreter)
4 # use the "-fs" option to avoid problems.
5 .POSIX:
6
7
8 include ../../Makedefs
9
10 ICONT = icont
11 IFLAGS = -us
12
13 FUNCLIB = libcfunc.so
14
15 .SUFFIXES: .c .o
16 .c.o: ; $(CC) $(CFLAGS) $(CFDYN) -c $<
17
18 FUNCS = bitcount.o external.o files.o fpoll.o internal.o lgconv.o osf.o \
19 pack.o ppm.o process.o tconnect.o
20 CSRC = $(FUNCS:.o=.c)
21
22
23 default: cfunc.u2 $(FUNCLIB)
24
25
26 # library
27
28 $(FUNCLIB): $(FUNCS) mklib.sh
29 CC="$(CC)" CFLAGS="$(CFLAGS)" BIN="../../bin" \
30 sh mklib.sh $(FUNCLIB) $(FUNCS)
31 $(FUNCS): icall.h
32
33
34 # Icon interface
35
36 cfunc.u2: cfunc.icn
37 $(ICONT) $(IFLAGS) -c cfunc.icn
38 cfunc.icn: $(CSRC) mkfunc.sh
39 sh mkfunc.sh $(FUNCLIB) $(FUNCS) >cfunc.icn
40
41
42 # cleanup
43
44 clean Clean:
45 rm -f $(FUNCLIB) *.o *.u? *.so so_locations cfunc.icn