Project

General

Profile

Using Watchdog » Makefile

Jonathan Cormier, 10/14/2014 03:43 PM

 
LINK = $(OE_QMAKE_LINK)
DEFINES = -DWATCHDOG_MAIN
CXXFLAGS = $(DEFINES)
LIBS = -lpthread

SOURCES = watchdog.cpp
OBJECTS = watchdog.o
TARGET = watchdog


first: all

####### Build rules

all: $(TARGET)

$(TARGET): $(OBJECTS)
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)

clean:compiler_clean
-$(DEL_FILE) $(OBJECTS)
-$(DEL_FILE) *~ core *.core


####### Compile

watchdog.o: watchdog.cpp watchdog.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o watchdog.o watchdog.cpp

(7-7/7)