Files
mybw/Makefile
Khem Raj bde6775672 makefile: Allow CFLAGS/LDFLAGS from environment.
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>
2022-10-22 16:13:47 -07:00

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)