diff options
author | zedarider <ymherklotz@gmail.com> | 2016-07-17 00:32:39 +0100 |
---|---|---|
committer | zedarider <ymherklotz@gmail.com> | 2016-07-17 00:32:39 +0100 |
commit | 1387ab5a3fba8206d8fa0182749bab792e3f6822 (patch) | |
tree | e430c53d3f21c9a3d01163abc69cceafc630be25 | |
download | Cardeval-1387ab5a3fba8206d8fa0182749bab792e3f6822.tar.gz Cardeval-1387ab5a3fba8206d8fa0182749bab792e3f6822.zip |
Adding all the initial files
-rw-r--r-- | Makefile | 34 | ||||
-rwxr-xr-x | bin/CardEval | bin | 0 -> 28328 bytes | |||
-rw-r--r-- | build/main.o | bin | 0 -> 36832 bytes | |||
l--------- | src/.#main.cpp | 1 | ||||
-rw-r--r-- | src/main.cpp | 16 |
5 files changed, 51 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..408960d --- /dev/null +++ b/Makefile @@ -0,0 +1,34 @@ +CC := g++ # this is the main compiler +# CC := clange --analyze # and comment out the linker last line +SRCDIR := src +BUILDDIR := build +TARGET := bin/CardEval + +SRCEXT := cpp +SOURCES := $(shell find $(SRCDIR) -type f -name "*.$(SRCEXT)") +OBJECTS := $(patsubst $(SRCDIR)/%,$(BUILDDIR)/%,$(SOURCES:.$(SRCEXT)=.o)) +CFLAGS := -g # -Wall +LIB := +INC := -I include + +$(TARGET): $(OBJECTS) + @echo " Linking..." + @echo " $(CC) $^ -o $(TARGET) $(LIB)"; $(CC) $^ -o $(TARGET) $(LIB) + +$(BUILDDIR)/%.o: $(SRCDIR)/%.$(SRCEXT) + @mkdir -p $(BUILDDIR) + @echo " $(CC) $(CFLAGS) $(INC) -c -o $@ $<"; $(CC) $(CFLAGS) $(INC) -c -o $@ $< + +clean: + @echo " Cleaning..." + @echo " $(RM) -r $(BUILDDIR) $(TARGET)"; $(RM) -r $(BUILDDIR) $(TARGET) + +# Tests +tester: + @echo " $(CC) $(CFLAGS) test/tester.cpp $(INC) $(LIB) -o bin/tester"; $(CC) $(CFLAGS) test/tester.cpp $(INC) $(LIB) -o bin/tester + +# Spikes +ticket: + @echo " $(CC) $(CFLAGS) spikes/ticket.cpp $(INC) $(LIB) -o bin/ticket"; $(CC) $(CFLAGS) spikes/ticket.cpp $(INC) $(LIB) -o bin/ticket + +.PHONY: clean diff --git a/bin/CardEval b/bin/CardEval Binary files differnew file mode 100755 index 0000000..80d7214 --- /dev/null +++ b/bin/CardEval diff --git a/build/main.o b/build/main.o Binary files differnew file mode 100644 index 0000000..9538ede --- /dev/null +++ b/build/main.o diff --git a/src/.#main.cpp b/src/.#main.cpp new file mode 120000 index 0000000..f3f1925 --- /dev/null +++ b/src/.#main.cpp @@ -0,0 +1 @@ +yannherklotz@Yann-Arch.970:1468703274
\ No newline at end of file diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..8562b2f --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,16 @@ +/* + + description: + + author: Yann Herklotz <ymherklotz@gmail.com> + date created: DD-MM-YYYY + + */ + +#include <iostream> + +int main(int argc, char** argv) { + std::cout << "executing " << argv[0] << std::endl; + std::cout << "arguments given: " << argc-1 << std::endl; + return 0; +} |