include [@@/local/pcb/librnd_template@/debug.tmpasm@]

print [@### Autogenerated by ./configure, DO NOT EDIT ###

ROOT=../..
PLUGDIR=$(ROOT)/src_plugins

LIBRND_SHAREDIR=@/local/pcb/librnd_prefix@/share/librnd4
include $(LIBRND_SHAREDIR)/librnd.mak

PLUG=$(PLUGDIR)/io_bxl
CFLAGS = @/local/pcb/c89flags@ @/local/rnd/CFLAGS@ @?/local/pcb/librnd_extra_inc@ -I$(PLUG) -I$(ROOT) -I$(ROOT)/src -I$(LIBRND_INCDIR) -I$(ROOT)/src_3rd
LDFLAGS = @/local/rnd/LDFLAGS@
CC=@cc/cc@


all: bxl2txt$(LIBRND_EXE) txt2bxl$(LIBRND_EXE)

include ../../Makefile.conf

bxl2txt$(LIBRND_EXE): bxl2txt.o bxl_decode.o
	$(CC) -o bxl2txt$(LIBRND_EXE) $(LDFLAGS) bxl2txt.o bxl_decode.o

txt2bxl$(LIBRND_EXE): txt2bxl.o bxl_decode.o
	$(CC) -o txt2bxl$(LIBRND_EXE) $(LDFLAGS) txt2bxl.o bxl_decode.o

txt2bxl.o: txt2bxl.c $(PLUG)/bxl_decode.h
	$(CC) -c $(CFLAGS) txt2bxl.c -o txt2bxl.o

bxl2txt.o: bxl2txt.c $(PLUG)/bxl_decode.h
	$(CC) -c $(CFLAGS) bxl2txt.c -o bxl2txt.o

bxl_decode.o: $(PLUG)/bxl_decode.c $(PLUG)/bxl_decode.h
	$(CC) -c $(CFLAGS) $(PLUG)/bxl_decode.c -o bxl_decode.o

install_all:
	$(SCCBOX) mkdir -p "$(BINDIR)"
	$(SCCBOX) $(HOW) "bxl2txt$(LIBRND_EXE)" "$(BINDIR)/bxl2txt$(LIBRND_EXE)"
	$(SCCBOX) $(HOW) "txt2bxl$(LIBRND_EXE)" "$(BINDIR)/txt2bxl$(LIBRND_EXE)"

install:
	$(MAKE) install_all HOW="install"

linstall:
	$(MAKE) install_all HOW="linstall -f"

uninstall:
	$(MAKE) install_all HOW="uninstall"

clean:
	$(SCCBOX) rm -f -q  bxl2txt.o txt2bxl.o bxl_decode.o bxl2txt$(LIBRND_EXE) txt2bxl$(LIBRND_EXE)

distclean: clean
	$(SCCBOX) rm -f -q Makefile

@]
