mirror of https://github.com/GOSTSec/gostcoin
orignal
7 years ago
1 changed files with 114 additions and 78 deletions
@ -1,78 +1,114 @@ |
|||||||
############################################################################# |
############################################################################# |
||||||
# Makefile for building: libi2psam |
# Makefile for building: libi2psam.a |
||||||
# Generated by qmake (2.01a) (Qt 4.8.3) on: ?? ????. 10 02:43:02 2013 |
# make -f makefile.unix |
||||||
# Project: i2psam.pro |
############################################################################# |
||||||
# Template: lib |
|
||||||
############################################################################# |
####### Compiler, tools and options |
||||||
|
|
||||||
####### Compiler, tools and options |
CC = gcc |
||||||
|
CXX = g++ |
||||||
CC = i686-w64-mingw32-gcc |
DEFINES = -D_MT -DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE |
||||||
CXX = i686-w64-mingw32-g++ |
|
||||||
DEFINES = -D_MT -DWIN32 -D_WINDOWS |
CFLAGS = -pipe -O2 -fPIC -Wall -W -D_REENTRANT $(DEFINES) |
||||||
CFLAGS = -pipe -isystem /usr/i686-w64-mingw32/include/ -O2 -Wall -Wextra $(DEFINES) |
CXXFLAGS = -pipe -O2 -std=c++11 -fPIC -Wall -W -D_REENTRANT $(DEFINES) |
||||||
CXXFLAGS = -O2 -fexceptions -Wall -Wextra $(DEFINES) |
AR = ar cqs |
||||||
INCPATH = -I'../../dependencies/mingw32/qt/include' -I'../../dependencies/mingw32' -I'../../dependencies/mingw32/qt/include/ActiveQt' -I'../../dependencies/mingw32/qt/mkspecs/unsupported/win32-g++-cross' |
RANLIB = |
||||||
LIB = i686-w64-mingw32-ar -ru |
TAR = tar -cf |
||||||
COPY = cp |
COMPRESS = gzip -9f |
||||||
SED = sed |
COPY = cp -f |
||||||
COPY_FILE = $(COPY) |
SED = sed |
||||||
COPY_DIR = cp -R |
COPY_FILE = $(COPY) |
||||||
DEL_FILE = rm -f |
COPY_DIR = $(COPY) -r |
||||||
DEL_DIR = rmdir |
STRIP = strip |
||||||
MOVE = mv |
INSTALL_FILE = install -m 644 -p |
||||||
CHK_DIR_EXISTS= test -d |
INSTALL_DIR = $(COPY_DIR) |
||||||
MKDIR = mkdir -p |
INSTALL_PROGRAM = install -m 755 -p |
||||||
INSTALL_FILE = $(COPY_FILE) |
DEL_FILE = rm -f |
||||||
INSTALL_PROGRAM = $(COPY_FILE) |
SYMLINK = ln -f -s |
||||||
INSTALL_DIR = $(COPY_DIR) |
DEL_DIR = rmdir |
||||||
|
MOVE = mv -f |
||||||
####### Files |
CHK_DIR_EXISTS= test -d |
||||||
|
MKDIR = mkdir -p |
||||||
SOURCES = i2psam.cpp |
|
||||||
OBJECTS = i2psam.o |
####### Output directory |
||||||
TARGET = libi2psam.a |
|
||||||
|
OBJECTS_DIR = ./ |
||||||
####### Implicit rules |
|
||||||
|
####### Files |
||||||
.SUFFIXES: .cpp .cc .cxx .C .c |
|
||||||
|
SOURCES = i2psam.cpp |
||||||
.cpp.o: |
OBJECTS = i2psam.o |
||||||
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< |
DESTDIR = |
||||||
|
TARGET = libi2psam.a |
||||||
.cc.o: |
|
||||||
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< |
first: all |
||||||
|
####### Implicit rules |
||||||
.cxx.o: |
|
||||||
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< |
.SUFFIXES: .o .c .cpp .cc .cxx .C |
||||||
|
|
||||||
.C.o: |
.cpp.o: |
||||||
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< |
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" |
||||||
|
|
||||||
.c.o: |
.cc.o: |
||||||
$(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< |
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" |
||||||
|
|
||||||
####### Build rules |
.cxx.o: |
||||||
|
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" |
||||||
first: all |
|
||||||
all: $(TARGET) |
.C.o: |
||||||
|
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" |
||||||
$(TARGET): $(OBJECTS) |
|
||||||
$(LIB) $(TARGET) $(OBJECTS) |
.c.o: |
||||||
|
$(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<" |
||||||
clean: |
|
||||||
-$(DEL_FILE) release/$(TARGET) |
####### Build rules |
||||||
-$(DEL_FILE) release/i2psam.o |
|
||||||
|
all: $(TARGET) |
||||||
distclean: clean |
|
||||||
-$(DEL_FILE) $(TARGET) |
staticlib: $(TARGET) |
||||||
|
|
||||||
####### Compile |
$(TARGET): $(OBJECTS) $(OBJCOMP) |
||||||
|
-$(DEL_FILE) $(TARGET) |
||||||
release/i2psam.o: i2psam.cpp i2psam.h |
$(AR) $(TARGET) $(OBJECTS) |
||||||
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o release/i2psam.o i2psam.cpp |
|
||||||
|
|
||||||
####### Install |
dist: |
||||||
|
@$(CHK_DIR_EXISTS) .tmp/i2psam1.0.0 || $(MKDIR) .tmp/i2psam1.0.0 |
||||||
FORCE: |
$(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/i2psam1.0.0/ && $(COPY_FILE) --parents i2psam.h .tmp/i2psam1.0.0/ && $(COPY_FILE) --parents i2psam.cpp .tmp/i2psam1.0.0/ && (cd `dirname .tmp/i2psam1.0.0` && $(TAR) i2psam1.0.0.tar i2psam1.0.0 && $(COMPRESS) i2psam1.0.0.tar) && $(MOVE) `dirname .tmp/i2psam1.0.0`/i2psam1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/i2psam1.0.0 |
||||||
|
|
||||||
|
|
||||||
|
clean: |
||||||
|
-$(DEL_FILE) $(TARGET) |
||||||
|
-$(DEL_FILE) $(OBJECTS) |
||||||
|
|
||||||
|
|
||||||
|
####### Sub-libraries |
||||||
|
|
||||||
|
distclean: clean |
||||||
|
-$(DEL_FILE) $(TARGET) |
||||||
|
|
||||||
|
|
||||||
|
check: first |
||||||
|
|
||||||
|
####### Compile |
||||||
|
|
||||||
|
i2psam.o: i2psam.cpp i2psam.h |
||||||
|
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o i2psam.o i2psam.cpp |
||||||
|
|
||||||
|
####### Install |
||||||
|
|
||||||
|
install_target: first FORCE |
||||||
|
@$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/lib/ || $(MKDIR) $(INSTALL_ROOT)/usr/lib/ |
||||||
|
-$(INSTALL_FILE) "$(TARGET)" "$(INSTALL_ROOT)/usr/lib/$(TARGET)" |
||||||
|
|
||||||
|
uninstall_target: FORCE |
||||||
|
-$(DEL_FILE) "$(INSTALL_ROOT)/usr/lib/$(TARGET)" |
||||||
|
-$(DEL_DIR) $(INSTALL_ROOT)/usr/lib/ |
||||||
|
|
||||||
|
|
||||||
|
install: install_target FORCE |
||||||
|
|
||||||
|
uninstall: uninstall_target FORCE |
||||||
|
|
||||||
|
FORCE: |
||||||
|
|
||||||
|
Loading…
Reference in new issue