wip
This commit is contained in:
@@ -4,7 +4,7 @@ PROJECT_DIR ?= $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
|
||||
BUILD_DIR ?= $(PROJECT_DIR)/build
|
||||
FORGE_SRC ?= $(PROJECT_DIR)/forge-steel
|
||||
TARGET ?= forge
|
||||
RUN_ARGS ?= --project=$(PROJECT_DIR)/project --internal-size=576 --auto-save
|
||||
RUN_ARGS ?= --project=$(PROJECT_DIR)/project --internal-size=576 -nmr -t=10 --auto-save
|
||||
VERSION ?= invar-$(shell grep -Eo '[0-9]+\.[0-9]+\.[0-9]+' $(FORGE_SRC)/configure.ac)
|
||||
SOURCES ?= $(FORGE_SRC)/src/*.h $(FORGE_SRC)/src/*.c $(FORGE_SRC)/hashmap.c/hashmap.c $(FORGE_SRC)/log.c/src/log.c
|
||||
CFLAGS ?= -Ofast -Ofast -march=native -flto -funroll-loops -fprefetch-loop-arrays -fno-exceptions -fopenmp -I$(FORGE_SRC)/include -DGLFW_INCLUDE_NONE -DGLFW_NATIVE_INCLUDE_NONE -DLOG_USE_COLOR -DVERSION=\"$(VERSION)\" -DOPENGL_MAJOR_VERSION=3 -DOPENGL_MINOR_VERSION=1
|
||||
@@ -15,18 +15,19 @@ LDLIBS ?= -lm -lGL -lglfw -lasound
|
||||
test:
|
||||
echo $(PROJECT_DIR)
|
||||
|
||||
forge-steel/src/main.c:
|
||||
$(MAKE) -s submodule-init
|
||||
|
||||
forge-steel/hashmap.c/hashmap.c:
|
||||
$(MAKE) -s submodule-init
|
||||
|
||||
forge-steel/log.c/src/log.c:
|
||||
$(MAKE) -s submodule-init
|
||||
|
||||
forge-steel/include/linmath.h:
|
||||
$(MAKE) -s submodule-init
|
||||
# forge-steel/src/main.c:
|
||||
# $(MAKE) -s submodule-init
|
||||
#
|
||||
# forge-steel/hashmap.c/hashmap.c:
|
||||
# $(MAKE) -s submodule-init
|
||||
#
|
||||
# forge-steel/log.c/src/log.c:
|
||||
# $(MAKE) -s submodule-init
|
||||
#
|
||||
# forge-steel/include/linmath.h:
|
||||
# $(MAKE) -s submodule-init
|
||||
|
||||
# $(BUILD_DIR)/$(TARGET): forge-steel/src/main.c forge-steel/hashmap.c/hashmap.c forge-steel/log.c/src/log.c forge-steel/include/linmath.h
|
||||
$(BUILD_DIR)/$(TARGET): forge-steel/src/main.c forge-steel/hashmap.c/hashmap.c forge-steel/log.c/src/log.c forge-steel/include/linmath.h
|
||||
mkdir -p $(BUILD_DIR)
|
||||
$(CC) $(SOURCES) $(CFLAGS) $(LDLIBS) -o $(BUILD_DIR)/$(TARGET)
|
||||
@@ -58,6 +59,12 @@ setup-rasp-config:
|
||||
remove-motd:
|
||||
sudo rm -rf /etc/motd
|
||||
|
||||
.PHONY: disable-cloud-init
|
||||
disable-cloud-init:
|
||||
sudo systemctl disable cloud-init.service
|
||||
sudo systemctl mask cloud-init.service
|
||||
sudo touch /etc/cloud/cloud-init.disabled
|
||||
|
||||
.PHONY: setup-services
|
||||
setup-services:
|
||||
sudo ln -fs $(PROJECT_DIR)/system/getty@tty1.service /etc/systemd/system/getty@tty1.service
|
||||
@@ -94,6 +101,6 @@ start-weston:
|
||||
.PHONY: host-install
|
||||
host-install:
|
||||
sudo chmod a+rwx /run/media/$(shell whoami)/rootfs/opt/
|
||||
cp -r . /run/media/$(shell whoami)/rootfs/opt/
|
||||
rsync -a $(PWD) /run/media/$(shell whoami)/rootfs/opt/
|
||||
sudo umount -R /run/media/$(shell whoami)/rootfs
|
||||
sudo umount -R /run/media/$(shell whoami)/bootfs
|
||||
|
||||
Reference in New Issue
Block a user