MAKE=make
CC=gcc
CFLAGS=-O2 -Wall
PROGS=http_get

# Solaris 2.6
SOL_LIBS="-lnsl -lsocket -lresolv"

# Linux
LNX_LIBS=

linux:		
		$(MAKE) all LIBS=$(LNX_LIBS)

solaris:		
		$(MAKE) all LIBS=$(SOL_LIBS)

all:		$(PROGS)

http_get:	http_get.o cfgcode.o
		$(CC) -o http_get cfgcode.o http_get.o $(LIBS)
		strip http_get

clean:
		rm -f *~ *.o core *.bak
		rm -f $(PROGS)
