diff options
author | root <root@krebs> | 2011-09-01 02:18:42 +0200 |
---|---|---|
committer | root <root@krebs> | 2011-09-01 02:18:42 +0200 |
commit | bb2a234ba756eb600fb6f562e67500d511d4ab39 (patch) | |
tree | c89b205e3ad2d20e3aa80ca525e0bbf1e01b4670 /oncology/dpfhack_display/unixdll.mk | |
parent | 8a6fd84c70618f5a435d2859b513de6de68dc0d1 (diff) | |
parent | 4fb37da707279faf92cc8a054c646336f23dfdbe (diff) |
Merge branch 'master' of github.com:/krebscode/painload
Conflicts:
.gitmodules
oncology/dpfhack_display
Diffstat (limited to 'oncology/dpfhack_display/unixdll.mk')
-rw-r--r-- | oncology/dpfhack_display/unixdll.mk | 101 |
1 files changed, 0 insertions, 101 deletions
diff --git a/oncology/dpfhack_display/unixdll.mk b/oncology/dpfhack_display/unixdll.mk deleted file mode 100644 index 3130e02e..00000000 --- a/oncology/dpfhack_display/unixdll.mk +++ /dev/null @@ -1,101 +0,0 @@ -# -# Common makefile to create a unix .so -# -# $Id: unixdll.mk 292 2010-01-07 19:35:21Z strubi $ -# - -OPTIMIZATIONS = -finline-functions #-O2 - -CXXFLAGS = $(INCLUDES) $(OPTIMIZATIONS) -CXXFLAGS += $(DLLFLAGS) -CXXFLAGS += -Wall -MD - -CFLAGS = $(INCLUDES) $(OPTIMIZATIONS) -CFLAGS += $(DLLFLAGS) -CFLAGS += -Wall -MD -CFLAGS += -fPIC - -ifdef RELEASE - CONFIG = Release -else - CONFIG = Debug -endif - -ifndef RELEASE - CFLAGS += $(DEBUGOPTS) -endif - -OBJDIR = $(CONFIG) - -ifndef PREFIX - PREFIX = . -endif - -DLLCOMMONOBJS = $(DLLCOMMONSRCS:%.c=$(OBJDIR)/%.o) -DLLCPPOBJS = $(DLLCPPSRCS:%.cpp=$(OBJDIR)/%.o) -DLLOBJS = $(DLLCSRCS:%.c=$(OBJDIR)/%.o) $(DLLCOMMONOBJS) -DLLOBJS += $(DLLCPPOBJS) -ifndef DLLINSTALLDIR - DLLINSTALLDIR = $(NETPP)/$(CONFIG) -endif - -# -# Please don't change this: -ifndef DLLTYPE - DLLTYPE = $(LIBNAME) -endif - -DLL = $(OBJDIR)/lib$(LIBNAME).so -STATICLIB = $(OBJDIR)/lib$(LIBNAME).a -DLLEXT = .so - -ifndef INSTALLBASE - INSTALLNAME = $(DLLTYPE) -else - INSTALLNAME = $(LIBNAME) -endif - -############################################################################ -# RULES -# - -$(OBJDIR)/%.o : %.cpp - $(CXX) -o $@ -c $< $(CXXFLAGS) - -$(OBJDIR)/%.o : %.c - $(CC) -o $@ -c $< $(CFLAGS) - -$(OBJDIR)/%.o: $(PREFIX)/%.c - $(CC) -o $@ -c $< $(CFLAGS) - -$(OBJDIR)/%.o: $(COMMONSRCDIR)/%.c - $(CC) -o $@ -c $< $(CFLAGS) - -dll: $(DLL) - -$(DLL): dirs $(DLLOBJS) - $(CC) -o $(DLL) -shared $(DLLOBJS) $(DLLDEPS) - - -# Make DLL directory, if it does not exist -$(OBJDIR): - [ -e $(OBJDIR) ] || mkdir $(OBJDIR) - -dirs: $(OBJDIR) - -$(STATICLIB): dirs $(DLLOBJS) - $(AR) ruv $(STATICLIB) $(DLLOBJS) - -libclean: - rm -f $(DLL) $(STATICLIB) - -installdll:: $(DLL) - [ -e $(DLLINSTALLDIR) ] || mkdir $(DLLINSTALLDIR) - cp $(DLL) $(DLLINSTALLDIR)/lib$(INSTALLNAME).so - -clean:: - rm -f $(DLLOBJS) - rm -fr Debug/ Release/ - rm -f *.d - rm -fr $(NETPP)/Debug - rm -fr $(NETPP)/Release |