mirror of
https://github.com/linux-msm/mybw.git
synced 2026-02-25 13:13:37 -08:00
This helps in cross-compilation where the flags passed from environment will matter much e.g. ABI, architecture etc. Signed-off-by: Khem Raj <raj.khem@gmail.com>
14 lines
192 B
Makefile
14 lines
192 B
Makefile
OUT := mybw
|
|
|
|
CFLAGS += -O2 -Wall -fno-builtin
|
|
LDFLAGS += -static -static-libgcc
|
|
|
|
SRCS := mybw.c
|
|
OBJS := $(SRCS:.c=.o)
|
|
|
|
$(OUT): $(OBJS)
|
|
$(CC) -o $@ $^ $(LDFLAGS)
|
|
|
|
clean:
|
|
rm -f $(OUT) $(OBJS)
|