-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmakefile
More file actions
36 lines (23 loc) · 729 Bytes
/
makefile
File metadata and controls
36 lines (23 loc) · 729 Bytes
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
29
30
31
32
33
34
35
36
CC = /usr/bin/gcc
CFLAGS = -g -O3 -Wall -Wextra
AS = $(CC) $(CFLAGS) -c
OBJS_UIROTK = obj/sender_uirotk.o obj/receiver_uirotk.o obj/main_uirotk.o
DEPS_UIROTK = include/ui_rotk/sender_uirotk.h include/ui_rotk/receiver_uirotk.h
###################################################
all: uirotk_test libuirotk
libuirotk: lib $(OBJS_UIROTK)
$(AR) -crs lib/libuirotk.a $(OBJS_UIROTK)
lib:
test -d lib || mkdir lib
uirotk_test: $(OBJS_UIROTK)
$(CC) $(CFLAGS) -o $@ $^
obj/%_uirotk.o: src/ui_rotk/%_uirotk.c $(DEPS_UIROTK)
$(CC) $(CFLAGS) -c -o $@ $<
###################################################
.PHONY: clean
clean:
-rm -f bin/uirotk_test
-rm -f obj/*.o
-rm -f lib/libuirotk.a
clean-keys:
-rm -f keys/*.txt