annotate lua/luadyncall/src/Makefile.custom @ 57:80b11152c659

make pydc tests display failed ones
author Tassilo Philipp
date Mon, 08 Feb 2021 09:58:25 +0100
parents 0cfcc391201f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
1 TOP =..
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
2 include $(TOP)/config
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
3 INSTALL_PREFIX ?=../../../src
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
4 INSTALL_LUA =$(INSTALL_PREFIX)
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
5 INSTALL_LIB =$(INSTALL_PREFIX)
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
6 CPPFLAGS =-I$(LUA)/include -I$(DYNCALL)/include -I$(BOOST_INCDIR)
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
7 CXXFLAGS =-fno-exceptions -fno-rtti
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
8 DYNTYPE =dyntype_boost.o
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
9 # LDFLAGS =-L$(LUA)/lib -llua -L$(DYNCALL)/lib -ldynload_s -ldyncall_s -ldyncallback_s $(DYNTYPE)
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
10 # MAC OS X:
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
11 LDFLAGS =-bundle -undefined dynamic_lookup
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
12 LD =gcc
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
13 all: intutils.so smartptr.so ldynload.so ldyncall.so cocoautil.dylib
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
14 # ldynguess.so
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
15 # $(DYNTYPE) smartptr.so ldynguess.so ldyntype.so ldynload.so ldyncall.so ldynstruct.so # TODO: ldyncallback.so
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
16 # lsmartptr.so $(DYNTYPE) ldynguess.so ldyntype.so ldynload.so ldyncall.so ldynstruct.so # TODO: ldyncallback.so
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
17
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
18 %.so: %.o
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
19 $(LD) $(LDFLAGS) -o $@ $^
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
20
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
21 ldynload.so: ldynload.o
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
22 $(LD) $(LDFLAGS) -o $@ $^ -L$(DYNCALL)/lib -ldynload_s
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
23
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
24 ldyncall.so: ldyncall.o
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
25 $(LD) $(LDFLAGS) -o $@ $^ -L$(DYNCALL)/lib -ldyncall_s
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
26
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
27 cocoa.dylib: cocoa.o
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
28 gcc -dynamiclib -o $@ $^ -framework AppKit
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
29
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
30 clean:
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
31 rm -f *.so *.o
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
32
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
33 install:
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
34 cp intutils.so smartptr.so ldynload.so ldyncall.so $(INSTALL_LIB)
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
35 cp dynload.lua dyncall.lua dynport.lua $(INSTALL_LUA)
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
36