blob: 0206f1c229ed9db29d0a7b86de8236cb13923fa4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# Simple Makefile
NAME = pywpa/_pywpa
CFLAGS += -Iwpactrl
OBJS = pywpa.o
%.o: %.c
@echo "Compiling $(<)"
@$(CC) $(CFLAGS) -c $(<) -o $(@)
$(NAME).so: objects libwpactrl
@echo "Statically Linking $(NAME)"
@$(CC) $(CFLAGS) $(OBJS) wpactrl/wpa_ctrl.o -shared -o $(NAME).so
main: objects libwpactrl
@echo "Creating test"
@$(CC) $(CFLAGS) $(OBJS) wpactrl/wpa_ctrl.o -o test -lpython2.4
objects: $(OBJS)
libwpactrl:
@make -C wpactrl > /dev/null
clean:
@rm -rf *.o
@rm -rf $(NAME).so
@rm -rf $(NAME).so.t*
@make -C wpactrl clean 2>/dev/null
|