blob: 2ea7baec087f229ce466fa03a0e1054d5caec13e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# Simple Makfile
NAME = pyiw
LIBS += -liw
#static: pyiw.c
# @echo "Statically Building/Linking $(NAME)"
# @$(CC) $(CFLAGS) -Istaticlibiw $(<) -shared -o $(NAME).so staticlibiw/libiw.a
dynamic: pyiw.c
@echo "Dynamically Building/Linking $(NAME)"
@$(CC) $(CFLAGS) $(LDFLAGS) $(LIBS) $(<) -shared -o $(NAME).so
clean:
@rm -rf *.o
@rm -rf $(NAME).so
@rm -rf $(NAME).so.t*
|