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 | 181ee880f53e1b10fce89e74ba429e23382809c1 (patch) | |
tree | 2f0f392274a6794f7962ec9dbd13e719e48ca5f7 /oncology/dpfhack_display/unixdll.mk | |
parent | cdbc8c537320e3e534694311516ac398ea501600 (diff) | |
parent | 5ad8c950f59472d1d0ad21c13320024889fe2e46 (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 |