errorresolver/Makefile

28 lines
467 B
Makefile

TARGET = ErrorResolver
OBJS = ErrorResolver.o
LIBS =
CFLAGS = -s -static -Wall -Wextra -std=c99
all: $(TARGET)
$(TARGET): $(OBJS)
@echo "Creating binary $(TARGET)"
$(CXX) $(OBJS) -o $@ $(LIBS) -static -static-libgcc
%.o: %.cpp
@echo "Compiling $^"
$(CXX) $(CFLAGS) -c $^ -o $@ -static -static-libgcc
clean:
@echo "Removing all the .o files"
@$(RM) $(OBJS)
mrproper: clean
@echo "Removing binary"
@$(RM) $(TARGET)
install: all
@cp $(TARGET) ../bin