mirror of
https://github.com/joel16/uofw.git
synced 2024-11-26 21:10:38 +00:00
30 lines
502 B
Makefile
30 lines
502 B
Makefile
# Copyright (C) 2011, 2012 The uOFW team
|
|
# See the file COPYING for copying permission.
|
|
|
|
CFLAGS=-Wall -Wextra -std=c++0x
|
|
LDFLAGS=
|
|
TARGET=basic-decompiler
|
|
OBJECTS=main.o
|
|
|
|
all: $(TARGET)
|
|
|
|
$(TARGET): $(OBJECTS)
|
|
@echo "Creating binary $(TARGET)"
|
|
$(CXX) $(OBJECTS) -o $@ $(LDFLAGS)
|
|
|
|
%.o: %.cpp
|
|
@echo "Compiling $^"
|
|
$(CXX) $(CFLAGS) -c $^ -o $@
|
|
|
|
clean:
|
|
@echo "Removing all the .o files"
|
|
@$(RM) $(OBJECTS)
|
|
|
|
mrproper: clean
|
|
@echo "Removing binary"
|
|
@$(RM) $(TARGET)
|
|
|
|
install: all
|
|
@cp $(TARGET) ../bin
|
|
|