# Makefile for xchiplogo
# You may need to change the XINCLUDE, SYSLIB, and FORMS
# then all you need is to type make and let it go
#

CC=        gcc
CCFLAG=    -O -g
LDFLAG=    -O -g
XINCLUDE=-I/usr/local/X11/include


# Set these to the right path to the forms library
XFORMSINC=-I/usr/local/X11/include
XFORMSLIB=-L/usr/local/X11/lib

# SYSLIB=-lXpm -lX11 -lm

# for solaris you need the -lsocket
SYSLIB=-lXpm -lX11 -lm -lsocket

# Flags the compiler will see
#########################################

CFLAGS=$(CCFLAG) $(XFORMSINC)  $(XINCLUDE)
LDFLAGS = $(LDFLAG)
LIBS=$(XFORMSLIB) -lforms $(SYSLIB)

#
SRCS  =  main.c xchiplogo.c help.c
OBJS  =  main.o xchiplogo.o help.o
DEMOSO=  main.o
#

DEMOS= $(DEMOSO:.o=) 

all:	$(DEMOS)

$(DEMOS):  $(OBJS)
	-$(CC) $(LDFLAGS) $(OBJS)  $(LIBS) -o xchiplogo


clean:
	-rm -f  *.o core a.out *~ xchiplogo

