summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorlouie <lshprung@yahoo.com>2020-12-29 17:09:17 -0800
committerlouie <lshprung@yahoo.com>2020-12-29 17:09:17 -0800
commit9875aaebf2d44c3f38be3c72b0c9c0af9422f8cc (patch)
tree189d89d948f7a7e7f3638928d483f3ecaf8d9142 /Makefile
parent3624ef3e18fa074ed7fadb11da68f61896dd67d3 (diff)
Added menu location caching
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 10 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 119160d..6d331f1 100644
--- a/Makefile
+++ b/Makefile
@@ -6,31 +6,34 @@ PREFIX = /usr/local
ifeq ($(OS),Windows_NT)
-$(NAME): draw.o read_cfg.o group.o entry.o windows/draw.o windows/read_cfg.o
- $(CC) -o $(NAME) draw.o read_cfg.o group.o entry.o windows/draw.o windows/read_cfg.o $(LIBS)
+$(NAME): draw.o read_cfg.o group.o entry.o windows/cache.o windows/draw.o windows/read_cfg.o
+ $(CC) -o $(NAME) draw.o read_cfg.o group.o entry.o windows/cache.o windows/draw.o windows/read_cfg.o $(LIBS)
windows/draw.o: windows/draw.c include/draw.h
windows/read_cfg.o: windows/read_cfg.c include/read_cfg.h
+windows/cache.o: windows/cache.c include/cache.h include/read_cfg.h
else
-$(NAME): draw.o read_cfg.o group.o entry.o unix/draw.o unix/read_cfg.o
- $(CC) -o $(NAME) draw.o read_cfg.o group.o entry.o unix/draw.o unix/read_cfg.o $(LIBS)
+$(NAME): draw.o read_cfg.o group.o entry.o unix/cache.o unix/draw.o unix/read_cfg.o
+ $(CC) -o $(NAME) draw.o read_cfg.o group.o entry.o unix/cache.o unix/draw.o unix/read_cfg.o $(LIBS)
unix/draw.o: unix/draw.c include/draw.h
unix/read_cfg.o: unix/read_cfg.c include/read_cfg.h
+unix/cache.o: unix/cache.c include/cache.h include/read_cfg.h
endif
-draw.o: draw.c include/draw.h include/entry.h include/group.h include/read_cfg.h
-read_cfg.o: read_cfg.c include/entry.h include/group.h
+draw.o: draw.c include/cache.h include/draw.h include/entry.h include/group.h include/read_cfg.h
+read_cfg.o: read_cfg.c include/entry.h include/group.h include/read_cfg.h
group.o: group.c include/entry.h include/group.h include/read_cfg.h
entry.o: entry.c include/entry.h include/group.h include/read_cfg.h
-
.PHONY: clean
clean:
rm *.o $(NAME)
+ rm -f unix/*.o
+ rm -f windows/*.o
ifneq ($(OS),Windows_NT)