CC = gcc OPT = -O3 -fomit-frame-pointer -march=i686 LIBS = -lpthread TARGET = l33t_client MISC = makefile INCDIR = src/include SRCDIR = src BINDIR = bin all: $(TARGET) $(TARGET): $(BINDIR)/ezxml.o $(BINDIR)/main.o $(CC) $(OPT) $(LIBS) -o $(BINDIR)/$(TARGET) $(BINDIR)/*.o $(BINDIR)/ezxml.o: $(SRCDIR)/ezxml/ezxml.h $(SRCDIR)/ezxml/ezxml.c -mkdir bin > /dev/null $(CC) $(OPT) $(LIBS) -c -o $(BINDIR)/ezxml.o $(SRCDIR)/ezxml/ezxml.c $(BINDIR)/main.o: $(SRCDIR)/main.c $(INCDIR)/test.h $(CC) $(OPT) $(LIBS) -c -o $(BINDIR)/main.o $(SRCDIR)/main.c clean: rm -f $(BINDIR)/*.o $(BINDIR)/$(TARGET)