-
Notifications
You must be signed in to change notification settings - Fork 22
/
makefile.unix
41 lines (25 loc) · 1.21 KB
/
makefile.unix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
include makefile.shared
TARGET = SuperNET
LIBS = -lcurl -lssl -lcrypto -lpthread -lz -lm
CC = gcc
OS := $(shell uname -s)
ifeq ($(OSNAME),Linux)
CFLAGS += -Wno-unused-but-set-variable
endif
CFLAGS += -Ipicocoin/include -O2
ALLSOURCES = plugins/InstantDEX/InstantDEX_main.c plugins/common/prices777.c plugins/peggy/quotes777.c plugins/peggy/peggy777.c plugins/common/opreturn777.c plugins/common/txind777.c plugins/common/teleport777.c plugins/KV/ramkv777.c plugins/agents/shuffle777.c $(SOURCES) $(ASOURCES) $(CSOURCES) $(GSOURCES) $(LSOURCES) $(PSOURCES)
OBJS := $(ALLSOURCES:%.c=%.o)
all: $(TARGET)
$(TARGET): $(OBJS) SNapi
ar rcu libs/libjl777.a $(OBJS); $(CC) -o $(TARGET) -DSTANDALONE SuperNET.c $(OBJS) $(LIBS); #gcc -o SNapi SNapi.c -lnanomsg -lm
SNapi.c: ;
SNapi: SNapi.c plugins/utils/cJSON.c ;\
$(CC) -o SNapi SNapi.c plugins/utils/cJSON.c -lnanomsg -lm
btcd: src/BitcoinDarkd; \
$(CC) -c -o src/obj/SuperNET.o SuperNET.c; cd src; rm BitcoinDarkd; $(MAKE) -f Makefile.unix; strip BitcoinDarkd; cp BitcoinDarkd ..
src/BitcoinDarkd: libs/libjl777.a
libs/libjl777.a: $(OBJS); \
ar rcu libs/libjl777.a $(OBJS);
doesntexist:
clean: doesntexist
rm $(OBJS) $(OBJSA) $(OBJSC) $(OBJSG) $(OBJSL) $(OBJSP)