#####################################################
# Makefile for grconvert                            #
#####################################################
# You should not change anything here.              #
# Please read INSTALL file in the upper directory   #
#####################################################

TOP=..

include $(TOP)/Make.conf

.SUFFIXES: .c $(O)

PROG = grconvert$(EXE)

SRCS = grconvert.c defaults.c readbin.c writeasc.c util.c

OBJS = grconvert$(O) defaults$(O) readbin$(O) writeasc$(O) util$(O)

CFLAGS = $(CFLAGS0) -I$(TOP) -I. -I$(TOP)/src -DGRCONVERT

LIBS = $(NOGUI_LIBS)

all: $(PROG)

$(PROG): $(OBJS)
	$(CC) -o $@ $(OBJS) $(LIBS)

tests: dummy

links: $(PROG)
	$(INSTALL) -d -m 755 $(PREFIX)/bin
	cd $(PREFIX)/bin; $(RM) $(PROG); $(LN_S) $(GR_HOME)/bin/$(PROG) $(PROG)
clean:
	$(RM) $(OBJS) 

distclean:
	$(RM) $(PROG) $(OBJS)
	
devclean:
	$(RM) $(PROG) $(OBJS)

install: $(PROG)
	$(INSTALL) -d -m 755 $(GR_HOME)/bin
	$(INSTALL) -s -m 755 $(PROG) $(GR_HOME)/bin/$(PROG)

dummy:

