Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F386484
Makefile
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Size
1 KB
Referenced Files
None
Subscribers
None
Makefile
View Options
#used for compiling yosys plugins
# Define directories
PLUGIN_DIR := ./plugins
TEMP_DIR := ./temp
OUTPUT_DIR := ./output
# Compiler and flags
CXX := gcc # Assuming you're using gcc to avoid newer GLIBCXX version issues
CXXFLAGS := -Wall -Wextra -ggdb -I/home/jasper/uni/i-edge/oss-cad-suite/share/yosys/include \
-MD -MP -D_YOSYS_ -fPIC -I/home/jasper/uni/i-edge/oss-cad-suite/include \
-std=c++17 -O3 -DYOSYS_ENABLE_READLINE -DYOSYS_ENABLE_PLUGINS \
-DYOSYS_ENABLE_GLOB -DYOSYS_ENABLE_ZLIB -I/usr/include/tcl8.6 \
-DYOSYS_ENABLE_TCL -DYOSYS_ENABLE_ABC -DYOSYS_ENABLE_COVER -rdynamic
LDFLAGS := -shared
LIBS := -lm -lrt -lreadline -lffi -ldl -lz -ltcl8.6 -ltclstub8.6
# Find all .cc files in the ./plugins directory
SRCS := $(wildcard $(PLUGIN_DIR)/*.cc)
# Create a list of corresponding .so files
OBJS := $(SRCS:.cc=.so)
# Default target is to build all .so files
all: $(OBJS)
# Compile each .cc file to a .so file
$(PLUGIN_DIR)/%.so: $(PLUGIN_DIR)/%.cc
$(CXX) $(CXXFLAGS) -o $@ $(LDFLAGS) $< $(LIBS)
# Clean up build artifacts and temp files
clean:
rm -f $(PLUGIN_DIR)/*.so $(PLUGIN_DIR)/*.d
rm -rf $(TEMP_DIR)/*
rm -rf $(OUTPUT_DIR)/*
# Add the dependency files generated with -MD (auto-dependency generation)
-include $(SRCS:.cc=.d)
.PHONY: all clean
File Metadata
Details
Attached
Mime Type
text/x-makefile
Expires
Thu, Jul 3, 5:20 PM (18 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
157296
Default Alt Text
Makefile (1 KB)
Attached To
Mode
R231 SoC_I-Edge_yosys_nem_optimization
Attached
Detach File
Event Timeline
Log In to Comment