aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile76
1 files changed, 9 insertions, 67 deletions
diff --git a/src/Makefile b/src/Makefile
index 95e9916..3f4d6f7 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -17,81 +17,23 @@ VERSION = 0.2
trayfreq_SOURCES = getcore.c getcore.h getfreq.c getfreq.h getgov.c getgov.h tray.c tray.h trayfreq.c utilities.c utilities.h widget_manager.c widget_manager.h trayfreq_set_interface.c trayfreq_set_interface.h config_file.c config_file.h defaults.c defaults.h getbat.c getbat.h bat_tray.c bat_tray.h
#trayfreq_SOURCES = getcore.c getcore.h getfreq.c getfreq.h getgov.c getgov.h tray.c tray.h trayfreq.c utilities.c utilities.h widget_manager.c widget_manager.h config_file.c config_file.h defaults.c defaults.h getbat.c getbat.h bat_tray.c bat_tray.h
-trayfreq_CFLAGS = $(GTK_CFLAGS) $(GLIB_CFLAGS)
+trayfreq_CFLAGS = $(GTK_CFLAGS) $(GLIB_CFLAGS) -Wall
trayfreq_LDFLAGS = $(GTK_LIBS) $(GLIB_LIBS) -lm
-trayfreq_set_CFLAGS = $(GTK_CFLAGS) $(GLIB_CFLAGS)
+trayfreq_set_CFLAGS = $(GTK_CFLAGS) $(GLIB_CFLAGS) -Wall
trayfreq_set_LDFLAGS = $(GTK_LIBS) $(GLIB_LIBS) -lm
trayfreq_set_SOURCES = trayfreq_set.c getfreq.c getcore.c
-all:
- $(CC) -o trayfreq-set $(trayfreq_set_SOURCES) $(trayfreq_set_CFLAGS) $(trayfreq_set_LDFLAGS)
- $(CC) -o trayfreq $(trayfreq_SOURCES) $(trayfreq_CFLAGS) $(trayfreq_LDFLAGS)
-
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
-
-
-
-
-
-
-
-
-
-
-
+all: trayfreq trayfreq-set
+trayfreq-set:
+ $(CC) -o trayfreq-set $(trayfreq_set_SOURCES) $(trayfreq_set_CFLAGS) $(trayfreq_set_LDFLAGS)
+trayfreq:
+ $(CC) -o trayfreq $(trayfreq_SOURCES) $(trayfreq_CFLAGS) $(trayfreq_LDFLAGS)
-#pkgdatadir = $(datadir)/trayfreq
-#pkgincludedir = $(includedir)/trayfreq
-#pkglibdir = $(libdir)/trayfreq
-#pkglibexecdir = $(libexecdir)/trayfreq
-#am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-#install_sh_DATA = $(install_sh) -c -m 644
-#install_sh_PROGRAM = $(install_sh) -c
-#install_sh_SCRIPT = $(install_sh) -c
-#INSTALL_HEADER = $(INSTALL_DATA)
-#transform = $(program_transform_name)
-#NORMAL_INSTALL = :
-#PRE_INSTALL = :
-#POST_INSTALL = :
-#NORMAL_UNINSTALL = :
-#PRE_UNINSTALL = :
-#POST_UNINSTALL = :
-#bin_PROGRAMS = trayfreq$(EXEEXT) trayfreq-set$(EXEEXT)
-#subdir = src
-#DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
- #$(srcdir)/config.h.in
-#ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-#am__aclocal_m4_deps = $(top_srcdir)/configure.ac
-#am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- #$(ACLOCAL_M4)
-#mkinstalldirs = $(install_sh) -d
-#CONFIG_HEADER = config.h
-#CONFIG_CLEAN_FILES =
-#CONFIG_CLEAN_VPATH_FILES =
-#am__installdirs = "$(DESTDIR)$(bindir)"
-#PROGRAMS = $(bin_PROGRAMS)
-#am_trayfreq_OBJECTS = trayfreq-getcore.$(OBJEXT) \
- #trayfreq-getfreq.$(OBJEXT) trayfreq-getgov.$(OBJEXT) \
- #trayfreq-tray.$(OBJEXT) trayfreq-trayfreq.$(OBJEXT) \
- #trayfreq-utilities.$(OBJEXT) trayfreq-widget_manager.$(OBJEXT) \
- #trayfreq-trayfreq_set_interface.$(OBJEXT) \
- #trayfreq-config_file.$(OBJEXT) trayfreq-defaults.$(OBJEXT) \
- #trayfreq-getbat.$(OBJEXT) trayfreq-bat_tray.$(OBJEXT)
-#trayfreq_OBJECTS = $(am_trayfreq_OBJECTS)
-#trayfreq_LDADD = $(LDADD)
-#trayfreq_LINK = $(CCLD) $(trayfreq_CFLAGS) $(CFLAGS) \
- #$(trayfreq_LDFLAGS) $(LDFLAGS) -o $@
-#am_trayfreq_set_OBJECTS = trayfreq_set-trayfreq_set.$(OBJEXT) \
- #trayfreq_set-getfreq.$(OBJEXT) trayfreq_set-getcore.$(OBJEXT)
-#trayfreq_set_OBJECTS = $(am_trayfreq_set_OBJECTS)
-#trayfreq_set_LDADD = $(LDADD)
-#trayfreq_set_LINK = $(CCLD) $(trayfreq_set_CFLAGS) $(CFLAGS) \
- #$(trayfreq_set_LDFLAGS) $(LDFLAGS) -o $@
+clean:
+ rm trayfreq trayfreq-set \ No newline at end of file