Using Watchdog » Makefile
1 |
LINK = $(OE_QMAKE_LINK) |
---|---|
2 |
DEFINES = -DWATCHDOG_MAIN |
3 |
CXXFLAGS = $(DEFINES) |
4 |
LIBS = -lpthread |
5 |
|
6 |
SOURCES = watchdog.cpp |
7 |
OBJECTS = watchdog.o |
8 |
TARGET = watchdog |
9 |
|
10 |
|
11 |
first: all |
12 |
|
13 |
####### Build rules
|
14 |
|
15 |
all: $(TARGET) |
16 |
|
17 |
$(TARGET): $(OBJECTS) |
18 |
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS) |
19 |
|
20 |
clean:compiler_clean |
21 |
-$(DEL_FILE) $(OBJECTS) |
22 |
-$(DEL_FILE) *~ core *.core |
23 |
|
24 |
|
25 |
####### Compile
|
26 |
|
27 |
watchdog.o: watchdog.cpp watchdog.h |
28 |
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o watchdog.o watchdog.cpp |
29 |
|
- « Previous
- 1
- …
- 5
- 6
- 7
- Next »