diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -4,8 +4,11 @@ AR := ar AS := nasm PKG := PKG_CONFIG_PATH=lib/pkgconfig pkg-config -WL_PROTO:=$(shell $(PKG) --variable=pkgdatadir wayland-protocols) -WL_SCAN:=$(shell $(PKG) --variable=wayland_scanner wayland-scanner) +OS := linux +ARCH := amd64 + +#WL_PROTO:=$(shell $(PKG) --variable=pkgdatadir wayland-protocols) +#WL_SCAN:=$(shell $(PKG) --variable=wayland_scanner wayland-scanner) # All needed build directories INC_DIR := include @@ -24,7 +27,7 @@ CFINI := `gcc --print-file-name=crtendS.o` $(LIB_DIR)/crt/x86_64/crtn.o CFLAGS := -g -march=native -fno-strict-aliasing -fwrapv -fms-extensions -Wno-microsoft-anon-tag STATIC := -nodefaultlibs -nostartfiles -nostdinc -static AFLAGS := -f elf64 -INCS := -I $(INC_DIR) -isystem $(INC_DIR)/vendor/libc +INCS := -I $(SYS_DIR)/$(OS)/$(ARCH) -I $(INC_DIR) -isystem $(INC_DIR)/vendor/libc ELIBS := -L$(LIB_DIR) -lc # Named generic rules (must be evaluated lazily) |