Commit ccf29390 authored by superr's avatar superr

Added arch detection to makefile for x86 and x86_64

parent 0f4c0b95
PREFIX ?= $(DESTDIR)/usr LBITS := $(shell getconf LONG_BIT)
BINDIR ?= $(PREFIX)/bin ifeq ($(LBITS),64)
LIBDIR ?= $(PREFIX)/lib/x86_64-linux-gnu LIBDIR ?= libs/x86_64
else
LIBDIR ?= libs/x86
endif
CFLAGS ?= -g -Wall -Werror -Wshadow -O2 -pipe -std=gnu11 CFLAGS ?= -g -Wall -Werror -Wshadow -O2 -pipe -std=gnu11
LDLIBS=$(LIBDIR)/libsepol.a LDLIBS=$(LIBDIR)/libsepol.a
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment