comparison 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
comparison
equal deleted inserted replaced
0:e70ea46d6073 1:05c8e0aef77d
1 #----- Fichier genere automatiquement sous Linux ------
2 #----- dim. févr. 22 01:38:49 CET 2015
3
4 #-----
5 INCDIR=.
6 CCFLAGS=-W -Wall -Werror -I$(INCDIR) -D_REENTRANT -g
7 LDFLAGS=
8 DEPOPT=-MM
9 CCC=cc
10 #-----
11
12 #------------- Appli --------------
13
14 TARGET=dspad_server
15
16 FILESdspad_server=ds.c \
17 dspad.c \
18 restartOp.c \
19 service.c \
20 uinput.c \
21 XML.c
22
23 LDFLAGSdspad_server=$(LDFLAGS)
24
25 OBJECTSdspad_server=$(FILESdspad_server:.c=.o)
26
27 #------------- Appli --------------
28
29 all: $(TARGET)
30
31 #------------- Appli --------------
32
33 dspad_server : $(OBJECTSdspad_server)
34 $(CCC) $(OBJECTSdspad_server) \
35 -o dspad_server $(LDFLAGSdspad_server)
36 #------------------------------------
37
38 .c.o :
39 $(CCC) $(CCFLAGS) -c $< \
40 -o $*.o
41
42 dep :
43 @echo "======== Mise a jour des dependances : .depend ========"
44 @rm -f .depend
45 @for i in *.c ; do \
46 echo $$i ; \
47 $(CCC) $(DEPOPT) $(CCFLAGS) $$i > .tmpdepend ; \
48 OBJNAME=`echo $$i | sed -e s%\\\.c%.o% ` ; \
49 cat .tmpdepend | \
50 sed -e s%`basename $$i .c`\\\.o%$$OBJNAME% >> .depend ; \
51 echo >> .depend ; \
52 done
53 @rm -f .tmpdepend
54
55 CLEANING=rm -f *.o core a.out $(TARGET) .depend
56 CONSEIL=echo Penser a faire : make -f Makefile dep
57
58 clear :
59 @$(CLEANING)
60 @echo
61 @$(CONSEIL)
62 @echo
63 clean :
64 $(CLEANING)
65 @echo
66 @$(CONSEIL)
67 @echo
68
69 sinclude .depend
70