CXX = g++
|
|
CXXFLAGS = -Wall
|
|
LDFLAGS = -pthread
|
|
OBJ = Packet.o NATItem.o Node.o
|
|
|
|
all:
|
|
+@make simulation
|
|
|
|
%.o: %.cpp
|
|
$(CXX) $(CXXFLAGS) -c -g $<
|
|
|
|
simulation: Main.o $(OBJ)
|
|
$(CXX) -g Main.cpp -o simulation $(OBJ) $(LDFLAGS)
|
|
|
|
clean:
|
|
rm -f *.o simulation
|