61
61
# ################ Mac OS X ##################################################
62
62
ifeq "$(OS ) " "macosx"
63
63
64
+ CURL_CFLAGS = -arch x86_64 -arch arm64
64
65
CFLAGS += ` curl-$( OS) /bin/curl-config --static-libs ` ` curl-$( OS) /bin/curl-config --cflags `
65
- # CFLAGS += -arch x86_64 -arch arm64
66
+ CFLAGS += $( CURL_CFLAGS )
66
67
67
68
EXE =
68
69
@@ -114,6 +115,8 @@ CFLAGS += -Wno-pointer-to-int-cast
114
115
CFLAGS += -I json-parser
115
116
JSFILES = json-parser/json.c
116
117
118
+ CURL_DIR =curl-7.78.0
119
+
117
120
# $(OBJS): %.o: %.c
118
121
# $(CC) $(CFLAGS) -c $< -o $@
119
122
@@ -125,18 +128,18 @@ msg:
125
128
@echo "Building blink1control-tool for OS=$(OS) BLINK1_VERSION=$(BLINK1_VERSION)"
126
129
127
130
curl-setup :
128
- @echo " setting up curl..."
129
- # wget http://curl.haxx.se/download/curl-7.37.1.tar.gz
130
- tar xvzf curl-7.37.1 .tar.gz
131
- cd curl-7.37.1 && ./configure --prefix=` pwd` /../curl-$(OS ) --disable-shared --disable-ldap --without-zlib --without-libssh2 --without-ssl --disable-crypto-auth && $(MAKE ) && $(MAKE ) install
131
+ @echo " setting up curl... $( CURL_VER ) "
132
+ # wget http://curl.haxx.se/download/curl-7.37.1.tar.gz
133
+ tar xzf $(CURL_DIR) .tar.gz
134
+ cd $(CURL_DIR) && CFLAGS="$(CURL_CFLAGS)" ./configure --prefix=`pwd`/../curl-$(OS) --disable-shared --disable-ldap --without-zlib --without-libssh2 --without-ssl --disable-crypto-auth && $(MAKE) && $(MAKE) install
132
135
133
136
json-parser-setup :
134
137
@echo " setting up json-parser"
135
138
unzip json-parser.zip
136
139
137
140
depcheck :
138
141
@echo " Checking if curl and json-parser are setup"
139
- @if [ ! -d curl-7.37.1 ] ; then \
142
+ @if [ ! -d $( CURL_DIR ) ] ; then \
140
143
$(MAKE ) curl-setup; \
141
144
else \
142
145
echo " curl set up" ; \
@@ -164,7 +167,8 @@ clean:
164
167
165
168
distclean :
166
169
$(MAKE ) clean
167
- rm -rf curl-7.37.1
170
+ rm -rf $( CURL_DIR )
168
171
rm -rf json-parser
172
+ rm -rf curl-$(OS )
169
173
170
174
FORCE :
0 commit comments