Merge branch 'master' of https://github.com/MagickaBBS/MagickaBBS
This commit is contained in:
commit
1a2048f41b
3
Makefile
3
Makefile
@ -1,5 +1,8 @@
|
||||
OS := $(shell uname -s)
|
||||
|
||||
ifeq ($(OS), DragonFly)
|
||||
MAKEFILE=Makefile.freebsd
|
||||
endif
|
||||
ifeq ($(OS), FreeBSD)
|
||||
MAKEFILE=Makefile.freebsd
|
||||
endif
|
||||
|
@ -8,7 +8,7 @@
|
||||
#include <b64/cdecode.h>
|
||||
#include <sys/socket.h>
|
||||
#include <arpa/inet.h>
|
||||
#ifdef __FreeBSD__
|
||||
#if defined(__FreeBSD__) || defined(__DragonFly__)
|
||||
#include <netinet/in.h>
|
||||
#endif
|
||||
#include "bbs.h"
|
||||
|
@ -5,6 +5,11 @@ ifeq ($(OS), FreeBSD)
|
||||
CFLAGS=-I/usr/local/include
|
||||
LDFLAGS=-L/usr/local/lib
|
||||
endif
|
||||
ifeq ($(OS), DragonFly)
|
||||
CC=cc
|
||||
CFLAGS=-I/usr/local/include -I/usr/local/include/ncurses
|
||||
LDFLAGS=-L/usr/local/lib
|
||||
endif
|
||||
ifeq ($(OS), NetBSD)
|
||||
CC=cc
|
||||
CFLAGS=-I/usr/pkg/include
|
||||
@ -23,7 +28,6 @@ endif
|
||||
|
||||
|
||||
CC=cc
|
||||
CFLAGS=-I/usr/local/include
|
||||
DEPS = fileapprove.c
|
||||
|
||||
OBJ = fileapprove.o
|
||||
|
@ -5,6 +5,11 @@ ifeq ($(OS), FreeBSD)
|
||||
CFLAGS=-I/usr/local/include
|
||||
LDFLAGS=-L/usr/local/lib
|
||||
endif
|
||||
ifeq ($(OS), DragonFly)
|
||||
CC=cc
|
||||
CFLAGS=-I/usr/local/include
|
||||
LDFLAGS=-L/usr/local/lib
|
||||
endif
|
||||
ifeq ($(OS), NetBSD)
|
||||
CC=cc
|
||||
CFLAGS=-I/usr/pkg/include
|
||||
|
@ -40,7 +40,7 @@ MBOBJS = $(MBOBJS_MSG) $(MBOBJS_JAM) $(MBOBJS_SQ3)
|
||||
DEFS = $(PLATFORMDEF) $(MBDEFS) $(NLDEFS)
|
||||
|
||||
# Commands
|
||||
ifeq ($(OS), FreeBSD)
|
||||
ifeq ($(OS), $(filter $(OS), FreeBSD DragonFly))
|
||||
CC = cc $(CPPFLAGS) $(CFLAGS) $(DEFS) $(LDFLAGS) -L/usr/local/lib -I $(INCDIR) -I ../../../deps/ -I/usr/local/include -Wall
|
||||
else
|
||||
CC = gcc $(CPPFLAGS) $(CFLAGS) $(DEFS) $(LDFLAGS) -I $(INCDIR) -I ../../../deps/ -Wall
|
||||
|
@ -5,6 +5,11 @@ ifeq ($(OS), FreeBSD)
|
||||
CFLAGS=-I/usr/local/include
|
||||
LDFLAGS=-L/usr/local/lib
|
||||
endif
|
||||
ifeq ($(OS), DragonFly)
|
||||
CC=cc
|
||||
CFLAGS=-I/usr/local/include
|
||||
LDFLAGS=-L/usr/local/lib
|
||||
endif
|
||||
ifeq ($(OS), NetBSD)
|
||||
CC=cc
|
||||
CFLAGS=-I/usr/pkg/include
|
||||
|
Reference in New Issue
Block a user