Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new feature request SConstruct to Makefile #97

Open
fatalfeel opened this issue Sep 24, 2022 · 1 comment
Open

new feature request SConstruct to Makefile #97

fatalfeel opened this issue Sep 24, 2022 · 1 comment

Comments

@fatalfeel
Copy link

##this is my Makefile for x64 and arm32

TARGET = asm_test

#CROSS_COMPILE =
CROSS_COMPILE = /opt/ivot/arm-ca9-linux-gnueabihf-6.5/bin/arm-ca9-linux-gnueabihf-
CXX = $(CROSS_COMPILE)g++

CXXFLAGS = -O0 -g -fPIC -Wall -fmessage-length=0 -std=c++14 -pthread -fopenmp
LDFLAGS = -lgcov -lpthread
COMPILE_DIR = ./objs

$(COMPILE_DIR)/%.o : ./%.cpp
@mkdir -p $(@d)
$(CXX) $(CXXFLAGS) -c $< -o $@

SRC = $(notdir $(wildcard ./*.cpp))
OBJ = $(patsubst %.cpp,$(COMPILE_DIR)/%.o,$(SRC))

$(TARGET) : $(OBJ)
$(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS)

all: $(TARGET)

clean:
rm -rf $(COMPILE_DIR) $(TARGET)

###################################################
could SConstruct to Makefile it is more easier to compile

@fatalfeel
Copy link
Author

prototype
https://www.mediafire.com/file/a9i1rzzknqqhqvx/test_submake.tar.gz

i will do it later and then share Makefile version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant