
# Project: emu51
# Makefile adopted for GNU/Linux by Matthias Arndt <marndt@asmsoftware.de>


CPP  = g++
CC   = gcc
OBJ  = emu51.o
LINKOBJ  = emu51.o
LIBS =  `allegro-config --libs`
INCS =  `allegro-config --cflags`
CXXINCS =  `allegro-config --cflags`
BIN  = emu51
CXXFLAGS = -O3 $(CXXINCS)
CFLAGS = -O3 $(INCS) 

.PHONY: all all-before all-after clean clean-custom

all: all-before $(BIN) all-after


clean: clean-custom
	rm -f $(OBJ) $(BIN)

$(BIN): $(OBJ)
	$(CPP) $(LINKOBJ) -o $(BIN) $(LIBS)

emu51.o: emu51.cpp
	$(CPP) -c emu51.cpp -o emu51.o $(CXXFLAGS)
