From 68bf3cab0f06fdea9e34e708601d515a7879daed Mon Sep 17 00:00:00 2001 From: "Samuel D. Crow" Date: Sat, 20 Mar 2021 10:50:45 -0500 Subject: [PATCH] fixed up Makefile and .gitignore now that it builds --- .gitignore | 1 + Makefile | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 5a2f8de..8693b6d 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ yab *.o *.so .vscode/* +yab2cpp diff --git a/Makefile b/Makefile index ba71b9b..2142861 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ -CC := clang++ +CC := g++ CFLAGS := -Wall CFLAGS += -std=c++11 -CFLAGS += -O0 +CFLAGS += -Os LFLAGS := ODIR := build @@ -18,10 +18,10 @@ $(ODIR): 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) - 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) $(CC) -c $(CFLAGS) yabCodeStructures.cpp -o $(ODIR)/yabCodeStructures.o