# make file for SunOS.
OBJS=\
	die.o\
        eXimon.o\
	mem.o\
	mstrcmp.o\
	read.o\
	usage.o\
	rcfile.o\
	xcurses.o\
	spawn.o
HEADERS=\
 	debugg.h\
	config.h\
	eXimon.h\
	dir.h\
	xcurses.h\
	color.h
EXE=eXimon
CC=/usr/bin/gcc -I/opt/local/include/ncurses
CFLAGS=-Wall -O2 -ggdb3 -pthread -DSUNOS
LNFLAGS=-lform -lmenu -lpanel -lncurses -ggdb3 -lpthread
LIBFLAGS=-L/usr/lib -L/opt/local/lib

all : main

main: $(OBJS)
	$(CC) -o $(EXE) $(OBJS) $(LIBFLAGS) $(LNFLAGS)

$(OBJS): $(HEADERS)

clean :
	rm -f $(OBJS) $(EXE) core

install:
 	mv /usr/sbin/eXimon /usr/sbin/eXimon.old
	install -m755 $(EXE) /usr/sbin/eXimon

uninstall:
	rm -f /usr/sbin/eXimon
