fixed bugs and added enough runtime to execute first code after the compiler segfaults at shutdown
This commit is contained in:
13
Makefile
13
Makefile
@@ -5,8 +5,9 @@ CFLAGS += -Os
|
||||
LFLAGS :=
|
||||
|
||||
ODIR := build
|
||||
RDIR := output
|
||||
|
||||
YABCODESTRUCTURES_SOURCE_DEPS := yabCodeStructures.cpp yab2cpp.h yab2cpp.cpp tester.cpp
|
||||
YABCODESTRUCTURES_SOURCE_DEPS := yabCodeStructures.cpp yab2cpp.h yab2cpp.cpp tester.cpp runtime/runtime.h
|
||||
YAB2CPP_SOURCE_DEPS := yab2cpp.cpp yab2cpp.h tester.cpp
|
||||
YABDATASTRUCTURES_SOURCE_DEPS := yabDataStructures.cpp yab2cpp.h yab2cpp.cpp tester.cpp
|
||||
YABFUNCTIONS_SOURCE_DEPS := yabFunctions.cpp yab2cpp.h yab2cpp.cpp tester.cpp
|
||||
@@ -17,15 +18,18 @@ all: binaries
|
||||
$(ODIR):
|
||||
@mkdir $(ODIR)
|
||||
|
||||
$(RDIR):
|
||||
@mkdir $(RDIR)
|
||||
|
||||
binaries: bin_yab2cpp bin_tester
|
||||
|
||||
YAB2CPP_OBJECT_DEPS := $(ODIR)/yabCodeStructures.o $(ODIR)/yabFunctions.o $(ODIR)/yabDataStructures.o $(ODIR)/yabIO.o $(ODIR)/yab2cpp.o
|
||||
TESTER_OBJECT_DEPS := $(ODIR)/yabCodeStructures.o $(ODIR)/yabFunctions.o $(ODIR)/yabDataStructures.o $(ODIR)/yabIO.o $(ODIR)/tester.o
|
||||
|
||||
bin_tester: $(ODIR) $(TESTER_OBJECT_DEPS)
|
||||
bin_tester: $(RDIR) $(ODIR) $(TESTER_OBJECT_DEPS)
|
||||
$(CC) -o tester $(TESTER_OBJECT_DEPS) $(LFLAGS)
|
||||
|
||||
bin_yab2cpp: $(ODIR) $(YAB2CPP_OBJECT_DEPS)
|
||||
bin_yab2cpp: $(RDIR) $(ODIR) $(YAB2CPP_OBJECT_DEPS)
|
||||
$(CC) -o yab2cpp $(YAB2CPP_OBJECT_DEPS) $(LFLAGS)
|
||||
|
||||
$(ODIR)/yabCodeStructures.o: $(ODIR) $(YABCODESTRUCTURES_SOURCE_DEPS)
|
||||
@@ -48,4 +52,5 @@ $(ODIR)/yabFunctions.o: $(ODIR) $(YABFUNCTIONS_SOURCE_DEPS)
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -rf build/* yab2cpp tester
|
||||
rm -rf build/* output/* yab2cpp tester
|
||||
|
||||
Reference in New Issue
Block a user