Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (17 sloc) 424 Bytes
CC=g++
CFLAGS=-c -Wall
LDFLAGS=-lcurl
SOURCES=main.cpp date.cpp controllers/lookup.cpp models/ansi.cpp models/security.cpp
OBJECTS=$(SOURCES:.cpp=.o)
EXECUTABLE=bin/fas
INSTALL_DIR=/usr/local
all: $(SOURCES) $(EXECUTABLE)
$(EXECUTABLE): $(OBJECTS)
$(CC) $(LDFLAGS) $(OBJECTS) -o $@
.cpp.o:
$(CC) $(CFLAGS) $< -o $@
install:
install -m 0755 $(EXECUTABLE) $(INSTALL_DIR)/bin
clean:
rm -rf $(OBJECTS)
.PHONY: install