Commit 179534f5 authored by deuce's avatar deuce
Browse files

New build system.

parent fa71818c
......@@ -25,6 +25,10 @@ include $(XPDEV)Common.gmake
include $(SBBS_SRC)Common.gmake
include $(UIFC)Common.gmake
ifeq ($(os),sunos)
LDFLAGS += -lsocket -lnsl
endif
FORCE$(EXEODIR)/umonitor: $(EXEODIR) $(OBJS) $(BUILD_DEPENDS)
$(EXEODIR)/umonitor: $(EXEODIR) $(OBJS) $(BUILD_DEPENDS)
......
OBJS := $(LIBODIR)/filewrap.o \
$(LIBODIR)/chat.o \
$(LIBODIR)/sockwrap.o \
$(LIBODIR)/dirwrap.o \
$(LIBODIR)/genwrap.o \
$(LIBODIR)/sbbs_ini.o \
$(LIBODIR)/ini_file.o \
$(LIBODIR)/scfglib1.o \
$(LIBODIR)/scfglib2.o \
$(LIBODIR)/nopen.o \
$(LIBODIR)/userdat.o \
$(LIBODIR)/ars.o \
$(LIBODIR)/dat_rec.o \
$(LIBODIR)/str_util.o \
$(LIBODIR)/crc16.o \
$(LIBODIR)/load_cfg.o \
$(LIBODIR)/date_str.o \
$(LIBODIR)/spyon.o \
$(LIBODIR)/smblib.o \
$(LIBODIR)/getstats.o \
$(LIBODIR)/getmail.o \
$(LIBODIR)/umonitor.o
......@@ -63,12 +63,12 @@ int spyon(char *sockname) {
/* ToDo Test for it actually being a socket! */
/* Well, it will fail to connect won't it? */
if((spy_sock=socket(PF_LOCAL,SOCK_STREAM,0))==INVALID_SOCKET) {
if((spy_sock=socket(PF_UNIX,SOCK_STREAM,0))==INVALID_SOCKET) {
printf("ERROR %d creating local spy socket", errno);
return(SPY_NOSOCKET);
}
spy_name.sun_family=AF_LOCAL;
spy_name.sun_family=AF_UNIX;
SAFECOPY(spy_name.sun_path,sockname);
spy_len=SUN_LEN(&spy_name);
if(connect(spy_sock,(struct sockaddr *)&spy_name,spy_len)) {
......
all: $(LIBODIR) $(BUILD_DEPENDS)$(EXEODIR)/umonitor
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment