CC = gcc
CFLAGS = -O2

#Uncomment for debugging to be built into the binaries
#DEBUG = -DHLID_DEBUG

EXE = hlinfo

#Release information
VERSION = 1.1b
RELEASE_OBJECTS = INSTALL README hlinfo.c hlinfo.h makefile

all:  hlinfo

hlinfo: hlinfo.c hlinfo.h
	$(CC) $(CFLAGS) hlinfo.c -o hlinfo
	-strip hlinfo
	
clean:
	rm -f $(EXE)

release:
	-rm -f hlinfo-*.tar.gz hlinfo-*.zip
	tar cvf hlinfo-$(VERSION).tar $(RELEASE_OBJECTS)
	gzip hlinfo-$(VERSION).tar
	zip hlinfo-$(VERSION).zip $(RELEASE_OBJECTS)
