simulation/Makefile

17 lines
192 B
Makefile

CXX=g++
LDFLAGS= -lSDL2 -lm
CXXFLAGS= -g -Wall
SOURCES = $(wildcard *.cpp)
all: sim
sim: $(SOURCES)
$(CXX) $(CXXFLAGS) -o sim $(SOURCES) $(LDFLAGS)
run: sim
./sim
clean:
rm -f sim *.o