Commits

Pierre Surply committed d680a69

Added global Makefile

  • Participants
  • Parent commits a886e05

Comments (0)

Files changed (4)

+*.o
+*~
+screen/
+src/Makefile
+roadmaster
+##
+## Makefile for RoadMaster
+## 
+## Made by Pierre Surply
+## <pierre.surply@gmail.com>
+## 
+## Started on  Mon Mar 25 12:46:24 2013 Pierre Surply
+## Last update Mon Mar 25 13:22:49 2013 Pierre Surply
+##
+
+QDIR	= /opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM
+
+QPEDIR		= $(QDIR)/qtopia
+QTDIR		= $(QDIR)/qt2
+PATH 		:= $(QPEDIR)/bin:$(QTDIR)/bin:$(DQTDIR)/bin:$(PATH)
+LD_LIBRARY_PATH := $(QPEDIR)/lib:$(QTDIR)/lib:$(DQTDIR)/lib:$(LD_LIBRARY_PATH)
+
+SPEC		= $(QPEDIR)/mkspecs/qws/linux-arm-g++
+
+QMAKE		= qmake
+
+EXEC		= roadmaster
+
+PRO		= $(wildcard src/*.pro)
+SRC		= $(PRO)		\
+		  $(wildcard src/*.c)	\
+		  $(wildcard src/*.h)
+
+MAKESRC	= src/Makefile
+
+all: $(EXEC)
+
+$(EXEC): $(SRC)
+	$(QMAKE) -spec $(SPEC) -o $(MAKESRC) $(PRO)
+	$(MAKE) -C src
+
+clean::
+	rm -f $(EXEC)
+	$(MAKE) -C src clean

File roadmaster.pro

-CONFIG += qtopiaapp
-CONFIG -= buildQuicklaunch
-DESTDIR = $(PWD)
-
-HEADERS = src/calibration.h \
-          src/gpio.h        \
-          src/sensor.h      \
-          src/roadmaster.h 
-          
-          
-
-SOURCES = src/calibration.cpp \
-          src/sensor.cpp      \
-          src/roadmaster.cpp  \
-
-SOURCES += src/main.cpp
-
-
-INTERFACES = src/roadmaster_base.ui
-LIBS += -lpthread
-TARGET = roadmaster

File src/roadmaster.pro

+CONFIG += qtopiaapp
+CONFIG -= buildQuicklaunch
+DESTDIR = $(PWD)
+
+HEADERS = calibration.h \
+          gpio.h        \
+          sensor.h      \
+          roadmaster.h 
+          
+          
+
+SOURCES = calibration.cpp \
+          sensor.cpp      \
+          roadmaster.cpp  \
+
+SOURCES += main.cpp
+
+
+INTERFACES = roadmaster_base.ui
+LIBS += -lpthread
+TARGET = roadmaster