Mercurial > remote-gamepad-server
view Makefile @ 1:05c8e0aef77d
Rename the Makefile to its correct name, and remove the execution bit of the XML configuration file.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sun, 22 Feb 2015 01:40:20 +0100 |
parents | makefile@e70ea46d6073 |
children | f362b20de51e |
line wrap: on
line source
#----- Fichier genere automatiquement sous Linux ------ #----- dim. févr. 22 01:38:49 CET 2015 #----- INCDIR=. CCFLAGS=-W -Wall -Werror -I$(INCDIR) -D_REENTRANT -g LDFLAGS= DEPOPT=-MM CCC=cc #----- #------------- Appli -------------- TARGET=dspad_server FILESdspad_server=ds.c \ dspad.c \ restartOp.c \ service.c \ uinput.c \ XML.c LDFLAGSdspad_server=$(LDFLAGS) OBJECTSdspad_server=$(FILESdspad_server:.c=.o) #------------- Appli -------------- all: $(TARGET) #------------- Appli -------------- dspad_server : $(OBJECTSdspad_server) $(CCC) $(OBJECTSdspad_server) \ -o dspad_server $(LDFLAGSdspad_server) #------------------------------------ .c.o : $(CCC) $(CCFLAGS) -c $< \ -o $*.o dep : @echo "======== Mise a jour des dependances : .depend ========" @rm -f .depend @for i in *.c ; do \ echo $$i ; \ $(CCC) $(DEPOPT) $(CCFLAGS) $$i > .tmpdepend ; \ OBJNAME=`echo $$i | sed -e s%\\\.c%.o% ` ; \ cat .tmpdepend | \ sed -e s%`basename $$i .c`\\\.o%$$OBJNAME% >> .depend ; \ echo >> .depend ; \ done @rm -f .tmpdepend CLEANING=rm -f *.o core a.out $(TARGET) .depend CONSEIL=echo Penser a faire : make -f Makefile dep clear : @$(CLEANING) @echo @$(CONSEIL) @echo clean : $(CLEANING) @echo @$(CONSEIL) @echo sinclude .depend