Skip to content

Commit

Permalink
Makefile updated for version 0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Melinysh committed Apr 16, 2016
1 parent 154b7ee commit 4aba808
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Generated by pymake version 0.5
# PyMake was written by Stephen Melinyshyn | github.com/Melinysh/PyMake

CXX := g++
CXXFLAGS := -Wall -g
PYMAKE_COMPILER := $(CXX)
PYMAKE_COMPILER_FLAGS := $(CXXFLAGS)
SRCEXT := cpp
SRCDIR := src
BUILDDIR := build
INSTALL_PATH := ~/bin/
TARGET := a.out
SOURCES := $(wildcard $(SRCDIR)/*.$(SRCEXT))
OBJECTS := $(patsubst $(SRCDIR)/%.o,$(BUILDDIR)/%.o,$(SOURCES:.$(SRCEXT)=.o))


all: $(TARGET)

$(TARGET): $(OBJECTS)
$(PYMAKE_COMPILER) -o $(TARGET) $^

$(BUILDDIR)/%.o: $(SRCDIR)/%.$(SRCEXT)
$(PYMAKE_COMPILER) $< $(PYMAKE_COMPILER_FLAGS) -c -o $@

clean:
-rm $(TARGET) $(OBJECTS)

run: all
./$(TARGET)

install: $(TARGET)
install $(TARGET) $(INSTALL_PATH)

uninstall:
-rm $(INSTALL_PATH)/$(TARGET)

0 comments on commit 4aba808

Please sign in to comment.