[add] laos using xv6-riscv thought
This commit is contained in:
21
laos/src/util/Makefile
Normal file
21
laos/src/util/Makefile
Normal file
@@ -0,0 +1,21 @@
|
||||
CURNAME := util
|
||||
BUILD_DIR := $(TOP_BUILD_DIR)/$(CURNAME)
|
||||
|
||||
CSRC := $(wildcard *.c)
|
||||
OBJS := $(patsubst %.c,%.o,$(CSRC))
|
||||
BUILD_OBJS := $(addprefix $(BUILD_DIR)/,$(OBJS))
|
||||
|
||||
.PHONY: build all message
|
||||
|
||||
all: message build
|
||||
|
||||
$(BUILD_DIR):
|
||||
@mkdir -p $(BUILD_DIR)
|
||||
|
||||
$(BUILD_OBJS): $(BUILD_DIR)/%.o:%.c $(BUILD_DIR)
|
||||
@$(CC) -c -o $@ $< $(CPPFLAGS) $(CFLAGS)
|
||||
|
||||
build: $(BUILD_OBJS)
|
||||
|
||||
message:
|
||||
@echo "building $(CURNAME)"
|
||||
1
laos/src/util/memops.c
Normal file
1
laos/src/util/memops.c
Normal file
@@ -0,0 +1 @@
|
||||
#include <assert.h>
|
||||
Reference in New Issue
Block a user