First commit.
This commit is contained in:
19
Makefile
Normal file
19
Makefile
Normal file
@@ -0,0 +1,19 @@
|
||||
CXX = g++
|
||||
TARGET = ias_ss
|
||||
OBJECTS = ias_ss.o robot.o
|
||||
CFLAGS = -ansi -pedantic -Wall -g `pkg-config --cflags playerc++` -g
|
||||
LDLIBS = `pkg-config --libs playerc++` -lboost_system -lpthread
|
||||
|
||||
all: $(TARGET)
|
||||
|
||||
$(TARGET): $(OBJECTS)
|
||||
$(CXX) $(CFLAGS) -o $(TARGET) $(OBJECTS) $(LDLIBS)
|
||||
|
||||
-include $(OBJECTS:.o=.d)
|
||||
|
||||
%.o: %.cpp
|
||||
$(CXX) -c $(CFLAGS) $*.cpp -o $*.o
|
||||
$(CXX) -MM $(CFLAGS) $*.cpp > $*.d
|
||||
|
||||
clean:
|
||||
$(RM) $(TARGET) $(OBJECTS) *.d
|
Reference in New Issue
Block a user