forked from bfsb/chainminer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (25 loc) · 822 Bytes
/
Makefile
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
CC=gcc
CCP=g++
OBJS=jobconnect.o handylib.o spidevc.o miner.o json/libjson.a
CCFLAGS=-g -Wall -pthread -O2 -march=armv6 -mfloat-abi=hard -mfpu=vfp -Wall -I .
#CCFLAGS=-g -Wall -DNO_PTHREADS -pthread -O2 -I .
APP = miner
all: $(APP)
.cpp.o:
$(CCP) $(CCFLAGS) -c $< -o $@
.c.o:
$(CC) $(CCFLAGS) -c $< -o $@
# Generate static 32-bit binary!
# That will be able to run on multiple versions of OSes
$(APP): $(OBJS)
# $(CCP) $(CCFLAGS) $< libftd2xx.a json/libjson.a libftd2xx.a lu10.a -lrt -ldl -o $@
# $(CC) -g -static -m32 $(CFLAGS) test.c bmtp.c tvec.c libftd2xx.a lu10.a -lrt -ldl -pthread -o $(APP)
$(CCP) $(CCFLAGS) $(OBJS) -o $@
clean:
rm -f *.o $(APP)
$(MAKE) -C json clean
json/libjson.a:
$(MAKE) -C json
jobconnect.o: jobconnect.cpp miner.h
spidevc.o: spidevc.cpp miner.h
miner.o: miner.cpp miner.h