12345678910111213141516171819202122 |
- CC=g++
- CCFLAGS=-O2 -g
- LDFLAGS=-lX11 -lXext -lrt
- SOURCES=main.cpp x.cpp options.cpp
- OBJECTS=$(SOURCES:.cpp=.o)
- EXECUTABLE=slop
- BINDIR="/usr/bin"
-
- all: $(SOURCES) $(EXECUTABLE)
-
- $(EXECUTABLE): $(OBJECTS)
- $(CC) $(OBJECTS) -o $@ $(LDFLAGS)
-
- $(OBJECTS): %.o: %.cpp
- $(CC) $(CCFLAGS) -o $@ -c $<
-
- clean:
- rm -rf $(OBJECTS) $(EXECUTABLE)
-
- install: all
- mkdir -p $(DESTDIR)$(BINDIR)
- cp $(CURDIR)/$(EXECUTABLE) $(DESTDIR)$(BINDIR)
|