forked from pcwalton/iowaittop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
21 lines (13 loc) · 902 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
include Makefile.config
TARGET=android-8
SYSLIBDIR=$(NDK)/platforms/$(TARGET)/arch-arm/usr/lib
TOOLCHAINDIR=$(NDK)/toolchains/arm-eabi-4.4.0/prebuilt/$(HOST)
CC=$(TOOLCHAINDIR)/bin/arm-eabi-gcc
CFLAGS+=-std=c99 -march=armv5te -mtune=xscale -msoft-float -mthumb-interwork -fpic -fno-exceptions -fno-short-enums -ffunction-sections -funwind-tables -fstack-protector -fmessage-length=0 -isystem $(NDK)/platforms/$(TARGET)/arch-arm/usr/include -UNDEBUG
LDFLAGS+=-Bdynamic -Wl,-T,$(TOOLCHAINDIR)/arm-eabi/lib/ldscripts/armelf.x -Wl,-dynamic-linker,/system/bin/linker -Wl,--gc-sections -Wl,-z,nocopyreloc -Wl,--no-undefined -Wl,-rpath-link=$(SYSLIBDIR) -nostdlib $(SYSLIBDIR)/crtbegin_dynamic.o $(SYSLIBDIR)/crtend_android.o -L$(SYSLIBDIR) -lc -ldl
all: iowaittop
iowaittop: iowaittop.c
$(CC) $(CFLAGS) $(LDFLAGS) -Wall -o iowaittop iowaittop.c bstrlib.c
.PHONY: clean
clean:
rm -f iowaittop