mirror of
https://github.com/WCBROW01/zblock.git
synced 2025-12-11 20:18:07 -05:00
Changes for running on FreeBSD
This commit is contained in:
6
Makefile
6
Makefile
@ -1,5 +1,5 @@
|
|||||||
CFLAGS = -Wall -Wextra -std=gnu11 -O2
|
CFLAGS = -I/usr/local/include -Ipostgresql -Wall -Wextra -std=gnu11 -O2
|
||||||
LDFLAGS = -lpthread -lcurl -lmrss -lpq
|
LDFLAGS = -L/usr/local/lib -lpthread -lcurl -lmrss -lpq
|
||||||
|
|
||||||
SRC = $(wildcard *.c)
|
SRC = $(wildcard *.c)
|
||||||
OBJ = $(SRC:.c=.o)
|
OBJ = $(SRC:.c=.o)
|
||||||
@ -8,4 +8,4 @@ zblock: $(OBJ) /usr/local/lib/libdiscord.a
|
|||||||
$(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS)
|
$(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS)
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean: rm -f $(OBJ) linuxbot
|
clean: rm -f $(OBJ) zblock
|
||||||
|
|||||||
@ -13,7 +13,7 @@
|
|||||||
#include <concord/discord.h>
|
#include <concord/discord.h>
|
||||||
#include <concord/log.h>
|
#include <concord/log.h>
|
||||||
|
|
||||||
#include <postgresql/libpq-fe.h>
|
#include <libpq-fe.h>
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "feed_info.h"
|
#include "feed_info.h"
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
#include <concord/discord.h>
|
#include <concord/discord.h>
|
||||||
|
|
||||||
#include <postgresql/libpq-fe.h>
|
#include <libpq-fe.h>
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
char *url;
|
char *url;
|
||||||
|
|||||||
Reference in New Issue
Block a user