# makefile for a800_launcher

# by Bill Kendrick
# bill@newbreedsoftware.com
# http://www.newbreedsoftware.com/

# April 5, 2001 - April 5, 2001


CC=$(PROGPREFIX)g++
STRIP=$(PROGPREFIX)strip
CFLAGS=-Wall -O2 -I/usr/include
FLTK=-L$(FLTKDIR) -lfltk -L$(XLIBDIR) -lXext -lX11


# Makefile commands:

all:	host mips

host:
	make \
		TARGET=a800_launcher.host a800_launcher.host \
		PROGPREFIX= \
		FLTKDIR=/usr/lib \
		XLIBDIR=/usr/X11R6/lib


mips:
	make \
		TARGET=a800_launcher.mips a800_launcher.mips \
		PROGPREFIX=mipsel-linux- \
		FLTKDIR=/usr/mipsel-linux/lib \
		XLIBDIR=/usr/mipsel-linux/lib

clean:
	-rm a800_launcher.host a800_launcher.mips


# Build the program:

$(TARGET):	a800_launcher.cxx
	$(CC) $(CFLAGS) a800_launcher.cxx $(FLTK) -o $(TARGET)
	$(STRIP) $(TARGET)
	$(STRIP) --remove-section .compact_rel $(TARGET)
	$(STRIP) --remove-section .note $(TARGET)
	$(STRIP) --remove-section .comment $(TARGET)

