mirror of
https://github.com/jakcron/nstool.git
synced 2024-12-22 18:55:29 +00:00
Update makefiles
This commit is contained in:
parent
5b26c370da
commit
3a4a5b9fb2
|
@ -7,7 +7,6 @@ DEPENDS = lz4
|
||||||
LIB_DIR = ..
|
LIB_DIR = ..
|
||||||
INCS = -I"include" $(foreach dep,$(DEPENDS), -I"$(LIB_DIR)/lib$(dep)/include")
|
INCS = -I"include" $(foreach dep,$(DEPENDS), -I"$(LIB_DIR)/lib$(dep)/include")
|
||||||
|
|
||||||
|
|
||||||
# Compiler Settings
|
# Compiler Settings
|
||||||
CXXFLAGS = -std=c++11 $(INCS) -D__STDC_FORMAT_MACROS -Wall -Wno-unused-value
|
CXXFLAGS = -std=c++11 $(INCS) -D__STDC_FORMAT_MACROS -Wall -Wno-unused-value
|
||||||
CFLAGS = -std=c11 $(INCS) -Wall -Wno-unused-value
|
CFLAGS = -std=c11 $(INCS) -Wall -Wno-unused-value
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
# Sources
|
# Sources
|
||||||
SRC_DIR = source
|
SRC_DIR = source
|
||||||
OBJS = $(foreach dir,$(SRC_DIR),$(subst .cpp,.o,$(wildcard $(dir)/*.cpp)))
|
OBJS = $(foreach dir,$(SRC_DIR),$(subst .cpp,.o,$(wildcard $(dir)/*.cpp))) $(foreach dir,$(SRC_DIR),$(subst .c,.o,$(wildcard $(dir)/*.c)))
|
||||||
|
|
||||||
# External dependencies
|
# External dependencies
|
||||||
DEPENDS = fnd polarssl
|
DEPENDS = fnd polarssl
|
||||||
LIB_DIR = ..
|
LIB_DIR = ..
|
||||||
INCS = -I"include" $(foreach dep,$(DEPENDS), -I"$(LIB_DIR)/lib$(dep)/include")
|
INCS = -I"include" $(foreach dep,$(DEPENDS), -I"$(LIB_DIR)/lib$(dep)/include")
|
||||||
|
|
||||||
|
|
||||||
# Compiler Settings
|
# Compiler Settings
|
||||||
CXXFLAGS = -std=c++11 $(INCS) -D__STDC_FORMAT_MACROS -Wall -Wno-unused-value
|
CXXFLAGS = -std=c++11 $(INCS) -D__STDC_FORMAT_MACROS -Wall -Wno-unused-value
|
||||||
|
CFLAGS = -std=c11 $(INCS) -Wall -Wno-unused-value
|
||||||
ARFLAGS = cr -o
|
ARFLAGS = cr -o
|
||||||
ifeq ($(OS),Windows_NT)
|
ifeq ($(OS),Windows_NT)
|
||||||
# Windows Only Flags/Libs
|
# Windows Only Flags/Libs
|
||||||
|
|
|
@ -7,7 +7,6 @@ DEPENDS = fnd crypto
|
||||||
LIB_DIR = ..
|
LIB_DIR = ..
|
||||||
INCS = -I"include" $(foreach dep,$(DEPENDS), -I"$(LIB_DIR)/lib$(dep)/include")
|
INCS = -I"include" $(foreach dep,$(DEPENDS), -I"$(LIB_DIR)/lib$(dep)/include")
|
||||||
|
|
||||||
|
|
||||||
# Compiler Settings
|
# Compiler Settings
|
||||||
CXXFLAGS = -std=c++11 $(INCS) -D__STDC_FORMAT_MACROS -Wall -Wno-unused-value
|
CXXFLAGS = -std=c++11 $(INCS) -D__STDC_FORMAT_MACROS -Wall -Wno-unused-value
|
||||||
CFLAGS = -std=c11 $(INCS) -Wall -Wno-unused-value
|
CFLAGS = -std=c11 $(INCS) -Wall -Wno-unused-value
|
||||||
|
|
|
@ -7,7 +7,6 @@ DEPENDS =
|
||||||
LIB_DIR = ..
|
LIB_DIR = ..
|
||||||
INCS = -I"include" $(foreach dep,$(DEPENDS), -I"$(LIB_DIR)/lib$(dep)/include")
|
INCS = -I"include" $(foreach dep,$(DEPENDS), -I"$(LIB_DIR)/lib$(dep)/include")
|
||||||
|
|
||||||
|
|
||||||
# Compiler Settings
|
# Compiler Settings
|
||||||
CXXFLAGS = -std=c++11 $(INCS) -D__STDC_FORMAT_MACROS -Wall -Wno-unused-value
|
CXXFLAGS = -std=c++11 $(INCS) -D__STDC_FORMAT_MACROS -Wall -Wno-unused-value
|
||||||
CFLAGS = -std=c11 $(INCS) -Wall -Wno-unused-value
|
CFLAGS = -std=c11 $(INCS) -Wall -Wno-unused-value
|
||||||
|
|
|
@ -7,7 +7,6 @@ DEPENDS = fnd crypto nx
|
||||||
LIB_DIR = ..
|
LIB_DIR = ..
|
||||||
INCS = -I"include" $(foreach dep,$(DEPENDS), -I"$(LIB_DIR)/lib$(dep)/include")
|
INCS = -I"include" $(foreach dep,$(DEPENDS), -I"$(LIB_DIR)/lib$(dep)/include")
|
||||||
|
|
||||||
|
|
||||||
# Compiler Settings
|
# Compiler Settings
|
||||||
CXXFLAGS = -std=c++11 $(INCS) -D__STDC_FORMAT_MACROS -Wall -Wno-unused-value
|
CXXFLAGS = -std=c++11 $(INCS) -D__STDC_FORMAT_MACROS -Wall -Wno-unused-value
|
||||||
CFLAGS = -std=c11 $(INCS) -Wall -Wno-unused-value
|
CFLAGS = -std=c11 $(INCS) -Wall -Wno-unused-value
|
||||||
|
|
|
@ -7,7 +7,6 @@ DEPENDS = fnd crypto
|
||||||
LIB_DIR = ..
|
LIB_DIR = ..
|
||||||
INCS = -I"include" $(foreach dep,$(DEPENDS), -I"$(LIB_DIR)/lib$(dep)/include")
|
INCS = -I"include" $(foreach dep,$(DEPENDS), -I"$(LIB_DIR)/lib$(dep)/include")
|
||||||
|
|
||||||
|
|
||||||
# Compiler Settings
|
# Compiler Settings
|
||||||
CXXFLAGS = -std=c++11 $(INCS) -D__STDC_FORMAT_MACROS -Wall -Wno-unused-value
|
CXXFLAGS = -std=c++11 $(INCS) -D__STDC_FORMAT_MACROS -Wall -Wno-unused-value
|
||||||
CFLAGS = -std=c11 $(INCS) -Wall -Wno-unused-value
|
CFLAGS = -std=c11 $(INCS) -Wall -Wno-unused-value
|
||||||
|
|
|
@ -1,12 +1,14 @@
|
||||||
# Sources
|
# Sources
|
||||||
SRC_DIR = source
|
SRC_DIR = source
|
||||||
OBJS = $(foreach dir,$(SRC_DIR), $(foreach dir,$(SRC_DIR),$(subst .c,.o,$(wildcard $(dir)/*.c)))
|
OBJS = $(foreach dir,$(SRC_DIR),$(subst .cpp,.o,$(wildcard $(dir)/*.cpp))) $(foreach dir,$(SRC_DIR),$(subst .c,.o,$(wildcard $(dir)/*.c)))
|
||||||
|
|
||||||
# External dependencies
|
# External dependencies
|
||||||
INCS = -I"include"
|
DEPENDS =
|
||||||
|
LIB_DIR = ..
|
||||||
|
INCS = -I"include" $(foreach dep,$(DEPENDS), -I"$(LIB_DIR)/lib$(dep)/include")
|
||||||
|
|
||||||
# Compiler Settings
|
# Compiler Settings
|
||||||
|
CXXFLAGS = -std=c++11 $(INCS) -D__STDC_FORMAT_MACROS -Wall -Wno-unused-value
|
||||||
CFLAGS = -std=c11 $(INCS) -Wall -Wno-unused-value
|
CFLAGS = -std=c11 $(INCS) -Wall -Wno-unused-value
|
||||||
ARFLAGS = cr -o
|
ARFLAGS = cr -o
|
||||||
ifeq ($(OS),Windows_NT)
|
ifeq ($(OS),Windows_NT)
|
||||||
|
|
|
@ -7,7 +7,6 @@ DEPENDS = fnd crypto
|
||||||
LIB_DIR = ..
|
LIB_DIR = ..
|
||||||
INCS = -I"include" $(foreach dep,$(DEPENDS), -I"$(LIB_DIR)/lib$(dep)/include")
|
INCS = -I"include" $(foreach dep,$(DEPENDS), -I"$(LIB_DIR)/lib$(dep)/include")
|
||||||
|
|
||||||
|
|
||||||
# Compiler Settings
|
# Compiler Settings
|
||||||
CXXFLAGS = -std=c++11 $(INCS) -D__STDC_FORMAT_MACROS -Wall -Wno-unused-value
|
CXXFLAGS = -std=c++11 $(INCS) -D__STDC_FORMAT_MACROS -Wall -Wno-unused-value
|
||||||
CFLAGS = -std=c11 $(INCS) -Wall -Wno-unused-value
|
CFLAGS = -std=c11 $(INCS) -Wall -Wno-unused-value
|
||||||
|
|
|
@ -1,12 +1,14 @@
|
||||||
# Sources
|
# Sources
|
||||||
SRC_DIR = source
|
SRC_DIR = source
|
||||||
OBJS = $(foreach dir,$(SRC_DIR), $(foreach dir,$(SRC_DIR),$(subst .c,.o,$(wildcard $(dir)/*.c)))
|
OBJS = $(foreach dir,$(SRC_DIR),$(subst .c,.o,$(wildcard $(dir)/*.c)))
|
||||||
|
|
||||||
# External dependencies
|
# External dependencies
|
||||||
INCS = -I"include"
|
DEPENDS =
|
||||||
|
LIB_DIR = ..
|
||||||
|
INCS = -I"include" $(foreach dep,$(DEPENDS), -I"$(LIB_DIR)/lib$(dep)/include")
|
||||||
|
|
||||||
# Compiler Settings
|
# Compiler Settings
|
||||||
|
CXXFLAGS = -std=c++11 $(INCS) -D__STDC_FORMAT_MACROS -Wall -Wno-unused-value
|
||||||
CFLAGS = -std=c11 $(INCS) -Wall -Wno-unused-value
|
CFLAGS = -std=c11 $(INCS) -Wall -Wno-unused-value
|
||||||
ARFLAGS = cr -o
|
ARFLAGS = cr -o
|
||||||
ifeq ($(OS),Windows_NT)
|
ifeq ($(OS),Windows_NT)
|
||||||
|
|
2
makefile
2
makefile
|
@ -3,7 +3,7 @@ LIB_DIR = $(PROJECT_DIR)/lib
|
||||||
PROGRAM_DIR = $(PROJECT_DIR)/programs
|
PROGRAM_DIR = $(PROJECT_DIR)/programs
|
||||||
BIN_DIR = $(PROJECT_DIR)/bin
|
BIN_DIR = $(PROJECT_DIR)/bin
|
||||||
|
|
||||||
LIBS = libfnd libpolarssl liblz4 libcrypto libcompress libes libpki libhac libhac-hb
|
LIBS = libpolarssl liblz4 libfnd libcrypto libcompress libes libpki libhac libhac-hb
|
||||||
PROGS = nstool
|
PROGS = nstool
|
||||||
|
|
||||||
main: build
|
main: build
|
||||||
|
|
|
@ -8,11 +8,9 @@ LIB_DIR = ../../lib
|
||||||
LIBS = $(foreach dep,$(DEPENDS), -L"$(LIB_DIR)/lib$(dep)" -l$(dep))
|
LIBS = $(foreach dep,$(DEPENDS), -L"$(LIB_DIR)/lib$(dep)" -l$(dep))
|
||||||
INCS = $(foreach dep,$(DEPENDS), -I"$(LIB_DIR)/lib$(dep)/include")
|
INCS = $(foreach dep,$(DEPENDS), -I"$(LIB_DIR)/lib$(dep)/include")
|
||||||
|
|
||||||
BIN_DIR = bin
|
|
||||||
OUTPUT = $(BIN_DIR)/$(shell basename $(CURDIR))
|
|
||||||
|
|
||||||
# Compiler Settings
|
# Compiler Settings
|
||||||
CXXFLAGS = -std=c++11 $(INCS) -D__STDC_FORMAT_MACROS -Wall -Wno-unused-value
|
CXXFLAGS = -std=c++11 $(INCS) -D__STDC_FORMAT_MACROS -Wall -Wno-unused-value
|
||||||
|
CFLAGS = -std=c11 $(INCS) -Wall -Wno-unused-value
|
||||||
ifeq ($(OS),Windows_NT)
|
ifeq ($(OS),Windows_NT)
|
||||||
# Windows Only Flags/Libs
|
# Windows Only Flags/Libs
|
||||||
CC = x86_64-w64-mingw32-gcc
|
CC = x86_64-w64-mingw32-gcc
|
||||||
|
@ -35,6 +33,9 @@ else
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
BIN_DIR = bin
|
||||||
|
OUTPUT = $(BIN_DIR)/$(shell basename $(CURDIR))
|
||||||
|
|
||||||
all: build
|
all: build
|
||||||
|
|
||||||
rebuild: clean build
|
rebuild: clean build
|
||||||
|
|
Loading…
Reference in a new issue