aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid <dbphillipsnz@gmail.com>2014-12-06 09:18:35 +1300
committerDavid <dbphillipsnz@gmail.com>2014-12-06 09:18:35 +1300
commit9f8e18e2c326abd248ef060731add28c5af02087 (patch)
tree0a74b2ead7bd0baae53be06e847ec9aefe124d20
parente2355d5b66bc09adffc1e084d33f56fd6ceb9ef4 (diff)
downloadparamano-9f8e18e2c326abd248ef060731add28c5af02087.tar.xz
Renamed EXTRA_CFLAGS to DEFS, and alignment fix
-rw-r--r--Makefile48
1 files changed, 24 insertions, 24 deletions
diff --git a/Makefile b/Makefile
index 5de38e0..2411b60 100644
--- a/Makefile
+++ b/Makefile
@@ -16,31 +16,31 @@ ROOT_UID=0
ifdef DEBUG
- EXTRA_CFLAGS+=-DDEBUG
+ DEFS += -DDEBUG
endif
-EXTRA_CFLAGS+= -DPREFIX=\"$(PREFIX)\" \
- -DBINDIR=\"$(BINDIR)\" \
- -DSUDO=\"$(SUDO)\" \
- -DPARAMANO_SET=\"$(PARAMANO_SET)\" \
- -DPARAMANO_CONF=\"$(PARAMANO_CONF)\" \
- -DLOCALEDIR=\"$(LOCALEDIR)\" \
- -DSHAREDIR=\"$(SHAREDIR)\" \
- -DROOT_UID=$(ROOT_UID) \
- -D_GNU_SOURCE
-
-
-DEPS = bat_tray.h \
- common.h \
- config_file.h \
- defaults.h \
- getcore.h \
- getfreq.h \
- getgov.h \
- paramano.h \
- reload.h \
- tray.h \
- paramano_set_interface.h
+DEFS += -DPREFIX=\"$(PREFIX)\" \
+ -DBINDIR=\"$(BINDIR)\" \
+ -DSUDO=\"$(SUDO)\" \
+ -DPARAMANO_SET=\"$(PARAMANO_SET)\" \
+ -DPARAMANO_CONF=\"$(PARAMANO_CONF)\" \
+ -DLOCALEDIR=\"$(LOCALEDIR)\" \
+ -DSHAREDIR=\"$(SHAREDIR)\" \
+ -DROOT_UID=$(ROOT_UID) \
+ -D_GNU_SOURCE
+
+
+DEPS = bat_tray.h \
+ common.h \
+ config_file.h \
+ defaults.h \
+ getcore.h \
+ getfreq.h \
+ getgov.h \
+ paramano.h \
+ reload.h \
+ tray.h \
+ paramano_set_interface.h
CFLAGS = -I/usr/include/gtk-2.0 \
-I/usr/lib/gtk-2.0/include \
@@ -106,7 +106,7 @@ paramano-set: \
########################################################################
%.o: %.c $(DEPS)
- $(CC) -c -o $@ $< $(CFLAGS) $(EXTRA_CFLAGS)
+ $(CC) -c -o $@ $< $(CFLAGS) $(DEFS)
########################################################################