Mercurial > remote-gamepad-server
comparison makefile @ 0:e70ea46d6073
Initial import from http://wouhanegaine.free.fr/dev/DSPad02b_neo07.zip
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sun, 22 Feb 2015 01:38:06 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:e70ea46d6073 |
---|---|
1 #----- Fichier genere automatiquement sous Linux ------ | |
2 #----- sam fév 24 17:16:55 CET 2007 | |
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 |