Skip to content

Commit

Permalink
Adds missing Makefile, fixes .gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
psde committed Jan 17, 2013
1 parent a69be28 commit 5f7eff8
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
codepeiler
*.sublime-workspace
*.code
bin/*
28 changes: 28 additions & 0 deletions src/codepeiler/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Project config
NAME = codepeiler
LIBS = -lBuffer

# Generic makefile
include ../common.mk
ROOT = ../..
OUTDIR = $(ROOT)/$(BINDIR)
OUTNAME= $(OUTDIR)/$(NAME)
SRCS = $(wildcard *.cpp)
OBJS = $(SRCS:.cpp=.o)
DEPS = $(OBJS:.o=.d)

release:
$(MAKE) CXXFLAGS="$(RELEASEFLAGS)" $(OUTNAME)

debug:
$(MAKE) CXXFLAGS="$(DEBUGFLAGS)" $(OUTNAME)

%.o: %.cpp
$(CXX) $(CXXFLAGS) -c -o $@ $<

$(OUTNAME): $(OBJS)
$(CXX) $(CXXFLAGS) -o $@ $(OBJS) $(LIBS)

.PHONY: clean
clean:
$(RM) $(OUTNAME) $(OBJS) $(DEPS)

0 comments on commit 5f7eff8

Please sign in to comment.