HexViewer/Makefile

94 lines
3.1 KiB
Makefile
Executable File
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

##################################################################################################################
# #
# Fichier : Makefile #
# #
# Type : Makefile d'un programme complet #
# #
# Auteur : Heero Yui #
# #
# Evolutions : Date Auteur Raison #
# 2010-01-29 Heero Yui Mise en place d'un makefile ultra simple #
# #
# Concu Pour le projet hexViwer #
# #
##################################################################################################################
export F_GRAS=
export F_INVERSER=
export F_SOUSLIGNER=
export F_NORMALE=
export F_NOIR=
export F_ROUGE=
export F_VERT=
export F_MARRON=
export F_BLUE=
export F_VIOLET=
export F_CYAN=
export F_GRIS=
export CADRE_HAUT_BAS=' $(F_INVERSER) $(F_NORMALE)'
export CADRE_COTERS='
$(F_INVERSER) $(F_NORMALE) $(F_INVERSER) $(F_NORMALE)'
CFLAGS= -g -Wall -D_REENTRANT
LDFLAGS=
LIB= -lpthread -lm
CC= g++ $(CFLAGS)
LD= g++
# Liste des fichiers
SRC=main.c \
display.c \
parameter.c
# Liste des objets
OBJ= $(SRC:.c=.o)
# Liste des d<>pendances
DEP= $(SRC:.c=.d)
#
BIN=hexViewer
.PHONY: all
all: encadrer $(BIN)
encadrer:
ifneq ($(COLOR),normal)
@echo $(CADRE_HAUT_BAS)
@echo $(CADRE_COTERS)
@echo ' DEBUT DE COMPILATION DU PROGRAMME :'$(CADRE_COTERS)
@echo ' $(F_VIOLET)$(BIN)$(F_NORMALE) '$(CADRE_COTERS)
@echo $(CADRE_COTERS)
@echo ' $(F_GRIS) Heero Yui Makefile 29-01-2010$(F_NORMALE)'$(CADRE_COTERS)
@echo $(CADRE_HAUT_BAS)
endif
#
%.o: %.c
@echo $(F_VERT)" (.o) $<"$(F_NORMALE)
@$(CC) -o $@ -c $<
%.d: %.c
@echo $(F_BLUE)" (.d) $<"$(F_NORMALE)
@$(CC) -MM -MD -o $@ $<
.PHONY: clean
clean:
rm -f $(BIN) $(OBJ) $(DEP) *.i *.s *.bck
$(BIN):$(OBJ)
@echo $(F_ROUGE)" (bin) $@"$(F_NORMALE)
@$(LD) -o $@ $^ $(LIB)
# inclusion des dependances
-include $(DEP)