diff --git a/17-Chernobyl/Emu/Makefile b/17-Chernobyl/Emu/Makefile deleted file mode 100644 index 9fc787c..0000000 --- a/17-Chernobyl/Emu/Makefile +++ /dev/null @@ -1,59 +0,0 @@ - -# ---------- Variables listed below --------- # -# Executable -TARGET := main.out - -# Paths to source, include, dependency, and object files -SPATH = src -IPATH = inc -DPATH = dep -OPATH = obj - -# File type of source file -STYPE = cc - -VPATH = $(SPATH) $(IPATH) $(DPATH) $(OPATH) - -# compiler and compiler flags -CC = g++ -CFLAGS = -I$(IPATH) -std=c++11 -Os - -# list of object files -SOURCES = $(wildcard $(SPATH)/*.$(STYPE)) -OBJECTS = $(addprefix $(OPATH)/,$(notdir $(SOURCES:.$(STYPE)=.o))) - - -# ----------- Targets listed below ---------- # -# Some targets aren't real -.PHONY: all clean run dump -# Don't autodelete object files: -.PRECIOUS: $(OPATH)/%.o - -all: $(DPATH) $(OPATH) $(TARGET) - -dump: - @echo SOURCES: $(SOURCES) - @echo OBJECTS: $(OBJECTS) - @echo TARGET: $(TARGET) - @echo VPATH: $(VPATH) - -clean: - -rm $(TARGET) - -rm -r dep obj - -run: - -$(addprefix ./,$(addsuffix ;,$(TARGET))) - -$(DPATH) $(OPATH): - mkdir -p $@ - -# Make the executable(s) -%.out: $(OBJECTS) - $(CC) $(CFLAGS) -o "$@" $^ -# Make the object and dependency files -$(OPATH)/%.o: $(SPATH)/%.$(STYPE) - $(CC) $(CFLAGS) -MMD -MF "$(DPATH)/$(@F:.o=.d)" -o "$@" -c "$<" - -# --------- Inclusions listed below --------- # -# use dependencies when rebuilding --include $(wildcard $(DPATH)/*.d) diff --git a/17-Chernobyl/Emu/inc/main.hh b/17-Chernobyl/Emu/inc/main.hh deleted file mode 100644 index 85b4085..0000000 --- a/17-Chernobyl/Emu/inc/main.hh +++ /dev/null @@ -1,6 +0,0 @@ -#ifndef MAIN_HH_INCLUDED -#define MAIN_HH_INCLUDED - -const int a = 0; - -#endif diff --git a/17-Chernobyl/Emu/src/main.cc b/17-Chernobyl/Emu/src/main.cc deleted file mode 100644 index 88ca19a..0000000 --- a/17-Chernobyl/Emu/src/main.cc +++ /dev/null @@ -1,10 +0,0 @@ - -#include "main.hh" - -#include -#include -#include - -int main (int argc, char *argv[]) { - return 0; -}