#
# $Id: Makefile,v 1.7 1997/01/03 17:46:41 root Exp $
#
# $Log: Makefile,v $
# Revision 1.7  1997/01/03 17:46:41  root
# Added netconfig.[ch] and dependencies.
#
# Revision 1.6  1996/12/21 00:20:55  root
# Added -lnsl to LIBS
#
# Revision 1.5  1996/12/06 20:48:21  root
# Added common.h, util.c, util.h
#
# Revision 1.4  1996/11/21 23:26:17  root
# Added veryclean target.  Put depend target at end.
#
# Revision 1.3  1996/11/21 23:23:53  root
# Added config.h to $(HDRS) and dependancies.
# Added -Wall to $(CFLAGS)
#
# Revision 1.2  1996/11/19 22:00:58  root
# Fixed debug target.
#
# Revision 1.1  1996/11/18 21:44:36  root
# Initial revision
#


SRCS= netconfig.c system.c dasm.c buildmenu.c rgsadmin.c util.c
CC=gcc
LIBS= -lnsl -lXm -lXt -lX11
LDFLAGS= -L/usr/openwin/lib -L/usr/dt/lib -Xlinker -R/usr/dt/lib -Xlinker -R/usr/openwin/lib
INCLUDES= -I/usr/openwin/include -I/usr/dt/include
CFLAGS=  -g -Wall $(INCLUDES)
OBJS= $(SRCS:.c=.o)
HDRS= $(SRCS:.c=.h) config.h common.h

rgsadmin: $(OBJS) $(HDRS)
	$(CC) -o rgsadmin $(OBJS) $(LDFLAGS) $(LIBS)

debug:
	make "CC=gcc -DRGSDEBUG"

.c.o:
	$(CC) $(CFLAGS) -c $<

clean:
	rm -f $(OBJS) rgsadmin *~

veryclean: clean
	rcsclean

sources: $(SRCS) $(HDRS)

depend:
	makedepend -- $(CFLAGS) -- $(SRCS)


rgsadmin.o: $(HDRS)
buildmenu.o: buildmenu.h
util.o: util.h common.h
netconfig.o: netconfig.h util.h
system.o: system.h
dasm.o: dasm.h config.h util.h

