Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

Commit

Permalink
Add travis module
Browse files Browse the repository at this point in the history
  • Loading branch information
dralagen committed Apr 10, 2014
1 parent 65900a5 commit 29c073e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
language: cpp
compiler:
- gcc
- clang
script: cd src/ && make -e

11 changes: 5 additions & 6 deletions src/Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
DEBUG=no
CC=g++
EXEC=laby
ifeq (${DEBUG},yes)
#debug
CFLAGS=-W -Wall -Wextra -pedantic -O0 -g --std=c++0x
LDFLAGS=
else
#release
CFLAGS=-O2 -s -std=c++0x
CFLAGS=-O2 -std=c++0x
LDFLAGS=
endif

Expand All @@ -21,12 +20,12 @@ ifeq ($(DEBUG),no)
endif

$(EXEC): $(OBJ)
@echo "$@"
@$(CC) -o $@ $^ $(LDFLAGS)
@echo "${CXX} $@"
@$(CXX) -o $@ $^ $(LDFLAGS)

%.o: %.cpp
@echo "-o $@ -c $<"
@$(CC) -o $@ -c $< $(CFLAGS)
@echo "${CXX} -o $@ -c $<"
@$(CXX) -o $@ -c $< $(CFLAGS)

.PHONY: clean mrproper

Expand Down

0 comments on commit 29c073e

Please sign in to comment.