-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
33 lines (25 loc) · 1.01 KB
/
Makefile
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
NAME=uManage
SOURCES=$(NAME).c config.c idle.c winmgmt.c sqlite.c weather.c
UISOURCES=$(SOURCES) indicate.c uoptions.c mouse.c uabout.c
CC=gcc
RM=rm
GLUE=GladeGlue.rb
CFLAGS=-Wall -Wextra -std=c89 -pedantic -Wmissing-prototypes -Wstrict-prototypes -Wold-style-definition -rdynamic
LIBS=glib-2.0 gtk+-3.0 appindicator3-0.1 sqlite3
CFLAGS+=`pkg-config --cflags $(LIBS)` -g
LIBFLAGS=-lxdo -lX11 -lXss -lxcb -lxcb-screensaver -lpthread
LIBFLAGS+=`pkg-config --libs $(LIBS)`
DBGFLAGS=-g
all: uManage uManageUi
uManage: $(SOURCES) uManage.h config.h idle.h winmgmt.h sqlite.h weather.h
$(CC) -o$(NAME) $(SOURCES) $(CFLAGS) $(LIBFLAGS)
uManageUi: $(UISOURCES) uManage.h config.h idle.h winmgmt.h indicate.h sqlite.h weather.h umenu_glade opts_glade about_glade
$(CC) -DGUI -o$(NAME)Ui $(UISOURCES) umenu_glade.c uoptions_glade.c uabout_glade.c $(CFLAGS) $(LIBFLAGS)
umenu_glade: umenu.glade
$(GLUE) umenu
opts_glade: uoptions.glade
$(GLUE) uoptions
about_glade: uabout.glade
$(GLUE) uabout
clean:
$(RM) *~ *_glade.c *_glade.h