Created
January 12, 2014 12:05
-
-
Save zedtux/8383803 to your computer and use it in GitHub Desktop.
Continuous Integration en C++ avec Hudson - Makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CC=g++ | |
CFLAGS=-ansi -pedantic -Wall -c -W | |
OTHERCFLAGS= | |
LDFLAGS= | |
OBJ=classa.o classb.o main.o | |
INSTALL=/usr/bin/install -c | |
BINDIR=/usr/local/bin | |
EXEC=appName | |
all: $(EXEC) | |
# | |
# Dev Tools | |
# | |
# Clean project | |
clean: | |
rm -rf *.o | |
rm -rf *.log | |
rm -rf *~ | |
mrproper: clean | |
rm -rf $(EXEC) | |
# Prepare project for Production | |
production: mrproper | |
rm -rf ./.svn | |
@echo $(EXEC) is now ready for production ! | |
# | |
# Compilation | |
# | |
appName: $(OBJ) | |
$(CC) -g -o $(EXEC) $(OBJ) $(LDFLAGS) | |
%.o: %.cpp | |
$(CC) $(CFLAGS) $(GTKFLAGS) -c $< | |
# | |
# Installation | |
# | |
install: $(EXEC) | |
$(INSTALL) -m 755 $(EXEC) $(BINDIR) | |
# | |
# UnInstall | |
# | |
uninstall: $(EXEC) | |
rm $(BINDIR)/$(EXEC) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment