fixed up Makefile and .gitignore now that it builds
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -6,3 +6,4 @@ yab
|
|||||||
*.o
|
*.o
|
||||||
*.so
|
*.so
|
||||||
.vscode/*
|
.vscode/*
|
||||||
|
yab2cpp
|
||||||
|
|||||||
8
Makefile
8
Makefile
@@ -1,7 +1,7 @@
|
|||||||
CC := clang++
|
CC := g++
|
||||||
CFLAGS := -Wall
|
CFLAGS := -Wall
|
||||||
CFLAGS += -std=c++11
|
CFLAGS += -std=c++11
|
||||||
CFLAGS += -O0
|
CFLAGS += -Os
|
||||||
LFLAGS :=
|
LFLAGS :=
|
||||||
|
|
||||||
ODIR := build
|
ODIR := build
|
||||||
@@ -18,10 +18,10 @@ $(ODIR):
|
|||||||
|
|
||||||
binaries: bin_yab2cpp
|
binaries: bin_yab2cpp
|
||||||
|
|
||||||
YAB2CPP_OBJECT_DEPS := $(ODIR)/yab2cpp.o $(ODIR)/yabCodeStructures.o $(ODIR)/yabDataStructures.o $(ODIR)/yabFunctions.o
|
YAB2CPP_OBJECT_DEPS := $(ODIR)/yabCodeStructures.o $(ODIR)/yabFunctions.o $(ODIR)/yabDataStructures.o $(ODIR)/yab2cpp.o
|
||||||
|
|
||||||
bin_yab2cpp: $(ODIR) $(YAB2CPP_OBJECT_DEPS)
|
bin_yab2cpp: $(ODIR) $(YAB2CPP_OBJECT_DEPS)
|
||||||
clang++ -v -o yab2cpp $(ODIR)/yabCodeStructures.o $(ODIR)/yabFunctions.o $(ODIR)/yabDataStructures.o $(ODIR)/yab2cpp.o
|
$(CC) -o yab2cpp $(YAB2CPP_OBJECT_DEPS) $(LFLAGS)
|
||||||
|
|
||||||
$(ODIR)/yabCodeStructures.o: $(ODIR) $(YABCODESTRUCTURES_SOURCE_DEPS)
|
$(ODIR)/yabCodeStructures.o: $(ODIR) $(YABCODESTRUCTURES_SOURCE_DEPS)
|
||||||
$(CC) -c $(CFLAGS) yabCodeStructures.cpp -o $(ODIR)/yabCodeStructures.o
|
$(CC) -c $(CFLAGS) yabCodeStructures.cpp -o $(ODIR)/yabCodeStructures.o
|
||||||
|
|||||||
Reference in New Issue
Block a user