Skip to content
Snippets Groups Projects
Commit c445566f authored by Anjan Chanda's avatar Anjan Chanda
Browse files

libethernet: add Makefile

parent 207c649d
Branches
No related tags found
No related merge requests found
Makefile 0 → 100644
CC = gcc
CFLAGS = -O2 -Wall -g
objs_lib = ethernet.o
ifeq ($(PLATFORM),BROADCOM)
objs_lib += bcm.o
else ifeq ($(PLATFORM),MEDIATEK)
objs_lib += ethsw.o
XXFLAGS += -Wl,-whole-archive -lsw -Wl,-no-whole-archive
endif
all: libethernet.so
%.o: %.c
$(CC) $(CFLAGS) -fPIC -c -o $@ $<
libethernet.so: $(objs_lib)
$(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(LDFLAGS) -shared -o $@ $^ $(XXFLAGS)
clean:
rm -f *.o *.so
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment