Move everything to src/ folder
This commit is contained in:
7
Makefile
7
Makefile
@@ -3,7 +3,7 @@ CC=cc
|
|||||||
DIST=build
|
DIST=build
|
||||||
OUT=$(DIST)/alisp.out
|
OUT=$(DIST)/alisp.out
|
||||||
|
|
||||||
UNITS=main.c $(shell find ./runtime -type 'f')
|
UNITS=$(shell find ./src -type 'f')
|
||||||
OBJECTS:=$(patsubst %.c, $(DIST)/%.o, $(UNITS))
|
OBJECTS:=$(patsubst %.c, $(DIST)/%.o, $(UNITS))
|
||||||
|
|
||||||
LDFLAGS=
|
LDFLAGS=
|
||||||
@@ -29,11 +29,10 @@ $(DIST)/%.o: %.c | $(DIST) $(DEPDIR)
|
|||||||
$(CC) $(CFLAGS) $(DEPFLAGS) $(DEPDIR)/$*.d -c -o $@ $<
|
$(CC) $(CFLAGS) $(DEPFLAGS) $(DEPDIR)/$*.d -c -o $@ $<
|
||||||
|
|
||||||
$(DIST):
|
$(DIST):
|
||||||
mkdir -p $(DIST) $(DIST)/runtime
|
mkdir -p $(DIST)/src
|
||||||
|
|
||||||
$(DEPDIR):
|
$(DEPDIR):
|
||||||
mkdir -p $(DEPDIR)
|
mkdir -p $(DEPDIR)/src
|
||||||
mkdir -p $(DEPDIR)/runtime
|
|
||||||
|
|
||||||
clangd: compile_commands.json
|
clangd: compile_commands.json
|
||||||
compile_commands.json: Makefile
|
compile_commands.json: Makefile
|
||||||
|
|||||||
Reference in New Issue
Block a user