diff 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
line wrap: on
line diff
new file mode 100644
--- /dev/null
+++ b/makefile
@@ -0,0 +1,70 @@
+#----- Fichier genere automatiquement sous Linux ------
+#----- sam fév 24 17:16:55 CET 2007
+
+#-----
+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
+