VPATH  = @srcdir@
srcdir = @srcdir@

top_builddir = @top_builddir@

SOURCES = makebin.c
BIN = $(top_builddir)/bin/makebin$(EXEEXT)

include $(top_builddir)/Makefile.common

all: $(BIN)

$(BIN): $(OBJ)
	mkdir -p $(top_builddir)/bin
	$(CC) $(LDFLAGS) -o $(BIN) $(OBJ)

install: all
	mkdir -p $(DESTDIR)$(bindir)
	$(INSTALL) $(BIN) $(DESTDIR)$(bindir)/`echo makebin|sed '$(transform)'`$(EXEEXT)
	$(STRIP) $(DESTDIR)$(bindir)/`echo makebin|sed '$(transform)'`$(EXEEXT)

uninstall:
	rm -f $(DESTDIR)$(bindir)/`echo makebin|sed '$(transform)'`$(EXEEXT)

include $(srcdir)/clean.mk
