mirror of
https://github.com/GOSTSec/gostcoin
synced 2025-03-13 05:41:11 +00:00
fixed makefile.mingw
This commit is contained in:
parent
6e3d5aa530
commit
7f5719afae
@ -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 = i686-w64-mingw32-gcc
|
CC = gcc
|
||||||
CXX = i686-w64-mingw32-g++
|
CXX = g++
|
||||||
DEFINES = -D_MT -DWIN32 -D_WINDOWS
|
DEFINES = -D_MT -DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE
|
||||||
CFLAGS = -pipe -isystem /usr/i686-w64-mingw32/include/ -O2 -Wall -Wextra $(DEFINES)
|
|
||||||
CXXFLAGS = -O2 -fexceptions -Wall -Wextra $(DEFINES)
|
CFLAGS = -pipe -O2 -fPIC -Wall -W -D_REENTRANT $(DEFINES)
|
||||||
INCPATH = -I'../../dependencies/mingw32/qt/include' -I'../../dependencies/mingw32' -I'../../dependencies/mingw32/qt/include/ActiveQt' -I'../../dependencies/mingw32/qt/mkspecs/unsupported/win32-g++-cross'
|
CXXFLAGS = -pipe -O2 -std=c++11 -fPIC -Wall -W -D_REENTRANT $(DEFINES)
|
||||||
LIB = i686-w64-mingw32-ar -ru
|
AR = ar cqs
|
||||||
COPY = cp
|
RANLIB =
|
||||||
|
TAR = tar -cf
|
||||||
|
COMPRESS = gzip -9f
|
||||||
|
COPY = cp -f
|
||||||
SED = sed
|
SED = sed
|
||||||
COPY_FILE = $(COPY)
|
COPY_FILE = $(COPY)
|
||||||
COPY_DIR = cp -R
|
COPY_DIR = $(COPY) -r
|
||||||
|
STRIP = strip
|
||||||
|
INSTALL_FILE = install -m 644 -p
|
||||||
|
INSTALL_DIR = $(COPY_DIR)
|
||||||
|
INSTALL_PROGRAM = install -m 755 -p
|
||||||
DEL_FILE = rm -f
|
DEL_FILE = rm -f
|
||||||
|
SYMLINK = ln -f -s
|
||||||
DEL_DIR = rmdir
|
DEL_DIR = rmdir
|
||||||
MOVE = mv
|
MOVE = mv -f
|
||||||
CHK_DIR_EXISTS= test -d
|
CHK_DIR_EXISTS= test -d
|
||||||
MKDIR = mkdir -p
|
MKDIR = mkdir -p
|
||||||
INSTALL_FILE = $(COPY_FILE)
|
|
||||||
INSTALL_PROGRAM = $(COPY_FILE)
|
####### Output directory
|
||||||
INSTALL_DIR = $(COPY_DIR)
|
|
||||||
|
OBJECTS_DIR = ./
|
||||||
|
|
||||||
####### Files
|
####### Files
|
||||||
|
|
||||||
SOURCES = i2psam.cpp
|
SOURCES = i2psam.cpp
|
||||||
OBJECTS = i2psam.o
|
OBJECTS = i2psam.o
|
||||||
TARGET = libi2psam.a
|
DESTDIR =
|
||||||
|
TARGET = libi2psam.a
|
||||||
|
|
||||||
|
first: all
|
||||||
####### Implicit rules
|
####### Implicit rules
|
||||||
|
|
||||||
.SUFFIXES: .cpp .cc .cxx .C .c
|
.SUFFIXES: .o .c .cpp .cc .cxx .C
|
||||||
|
|
||||||
.cpp.o:
|
.cpp.o:
|
||||||
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
|
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
|
||||||
|
|
||||||
.cc.o:
|
.cc.o:
|
||||||
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
|
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
|
||||||
|
|
||||||
.cxx.o:
|
.cxx.o:
|
||||||
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
|
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
|
||||||
|
|
||||||
.C.o:
|
.C.o:
|
||||||
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
|
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
|
||||||
|
|
||||||
.c.o:
|
.c.o:
|
||||||
$(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<
|
$(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<"
|
||||||
|
|
||||||
####### Build rules
|
####### Build rules
|
||||||
|
|
||||||
first: all
|
|
||||||
all: $(TARGET)
|
all: $(TARGET)
|
||||||
|
|
||||||
$(TARGET): $(OBJECTS)
|
staticlib: $(TARGET)
|
||||||
$(LIB) $(TARGET) $(OBJECTS)
|
|
||||||
|
$(TARGET): $(OBJECTS) $(OBJCOMP)
|
||||||
|
-$(DEL_FILE) $(TARGET)
|
||||||
|
$(AR) $(TARGET) $(OBJECTS)
|
||||||
|
|
||||||
|
|
||||||
|
dist:
|
||||||
|
@$(CHK_DIR_EXISTS) .tmp/i2psam1.0.0 || $(MKDIR) .tmp/i2psam1.0.0
|
||||||
|
$(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:
|
clean:
|
||||||
-$(DEL_FILE) release/$(TARGET)
|
-$(DEL_FILE) $(TARGET)
|
||||||
-$(DEL_FILE) release/i2psam.o
|
-$(DEL_FILE) $(OBJECTS)
|
||||||
|
|
||||||
|
|
||||||
|
####### Sub-libraries
|
||||||
|
|
||||||
distclean: clean
|
distclean: clean
|
||||||
-$(DEL_FILE) $(TARGET)
|
-$(DEL_FILE) $(TARGET)
|
||||||
|
|
||||||
|
|
||||||
|
check: first
|
||||||
|
|
||||||
####### Compile
|
####### Compile
|
||||||
|
|
||||||
release/i2psam.o: i2psam.cpp i2psam.h
|
i2psam.o: i2psam.cpp i2psam.h
|
||||||
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o release/i2psam.o i2psam.cpp
|
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o i2psam.o i2psam.cpp
|
||||||
|
|
||||||
####### Install
|
####### 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:
|
FORCE:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user