blob: fa0cb9a71f430ee499019926c7ea32417e4167be (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
INCLUDES=-Iinclude
LIBNAME=librtk-inband.so
APPNAME=rtk-inband
all: $(LIBNAME) $(APPNAME)
%.o: %.c
$(CC) -c -o $@ $(INCLUDES) $(CFLAGS) $<
OBJ=inband_if.o ioh.o
LIB_OBJ=hapd_api.o $(OBJ)
APP_OBJ=inband_cmd.o $(OBJ)
$(APPNAME):$(APP_OBJ)
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
$(LIBNAME): $(LIB_OBJ)
$(CC) $(CFLAGS) -shared -o $@ $^
|