Commit 955b9617 authored by Robert Ricci's avatar Robert Ricci
Browse files

Behold the power of GNU make - a greatly simplified makefile.

It's not perfect - it doesn't rebuild the dependancy file at the
right time, but it should be good enough for our purposes.
parent 3327ba01
SRCS=$(wildcard *.cc)
HDRS=$(wildcard *.h)
CXXFLAGS=-I. -Wall -g
LDFLAGS=-lm -lpcap
# Turn this on for profiling
all: $(DEPFILE) magent
magent: $(OBJS)
$(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $^
-rm magent $(OBJS) $(DEPFILE)
-include $(DEPFILE)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment