
{"id":17387,"date":"2018-11-01T15:39:18","date_gmt":"2018-11-01T15:39:18","guid":{"rendered":"http:\/\/www.beautifulwork.org\/?p=17387"},"modified":"2018-11-01T15:39:18","modified_gmt":"2018-11-01T15:39:18","slug":"hacking-with-makefile-for-machine-architecture-detection","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2018\/11\/01\/hacking-with-makefile-for-machine-architecture-detection\/","title":{"rendered":"Hacking with Makefile for machine architecture detection"},"content":{"rendered":"<pre>\n# SPDX-License-Identifier: GPL-2.0\nINCLUDEDIR := -I.\nCFLAGS := $(CFLAGS) $(INCLUDEDIR) -Wall -O2 -g\n\nTEST_GEN_FILES := adi-test\nUNAME := $(shell uname -m)\n\nall: $(TEST_GEN_FILES)\t\n\n$(TEST_GEN_FILES): adi-test.c \nifeq ($(UNAME), sparc64)\n\t$(info Machine architecture does match)\nelse\n\t$(info exit)\n\t$(error Machine architecture does not match)\nendif  \n\nTEST_PROGS := drivers_test.sh\n\ninclude ..\/..\/lib.mk\n\n$(OUTPUT)\/adi-test: adi-test.c\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p># SPDX-License-Identifier: GPL-2.0 INCLUDEDIR := -I. CFLAGS := $(CFLAGS) $(INCLUDEDIR) -Wall -O2 -g TEST_GEN_FILES := adi-test UNAME := $(shell uname -m) all: $(TEST_GEN_FILES) $(TEST_GEN_FILES): adi-test.c ifeq ($(UNAME), sparc64) $(info Machine architecture does match) else $(info exit) $(error Machine architecture does not match) endif TEST_PROGS := drivers_test.sh include ..\/..\/lib.mk $(OUTPUT)\/adi-test: adi-test.c<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[10,83],"tags":[412,1090,1618],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/17387"}],"collection":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/comments?post=17387"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/17387\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=17387"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=17387"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=17387"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}