main.c and panel.c actually depend on ../config.h
This commit is contained in:
parent
d3bf875dd1
commit
467fc64410
|
@ -35,10 +35,10 @@ run_LDFLAGS = $(LDFLAGSF) $(LDFLAGS)
|
||||||
run: $(run_OBJS)
|
run: $(run_OBJS)
|
||||||
$(CC) -o run $(run_OBJS) $(run_LDFLAGS)
|
$(CC) -o run $(run_OBJS) $(run_LDFLAGS)
|
||||||
|
|
||||||
panel.o: panel.c common.h ../include/Panel.h
|
panel.o: panel.c common.h ../include/Panel.h ../config.h
|
||||||
$(CC) $(panel_CFLAGS) -c panel.c
|
$(CC) $(panel_CFLAGS) -c panel.c
|
||||||
|
|
||||||
main.o: main.c common.h
|
main.o: main.c common.h ../config.h
|
||||||
$(CC) $(panel_CFLAGS) -c main.c
|
$(CC) $(panel_CFLAGS) -c main.c
|
||||||
|
|
||||||
run.o: run.c
|
run.o: run.c
|
||||||
|
|
|
@ -21,12 +21,13 @@
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
#include "../config.h"
|
||||||
|
|
||||||
|
|
||||||
/* usage */
|
/* usage */
|
||||||
static int _usage(void)
|
static int _usage(void)
|
||||||
{
|
{
|
||||||
fputs("Usage: panel\n", stderr);
|
fputs("Usage: " PACKAGE "\n", stderr);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -214,7 +214,7 @@ int panel_error(Panel * panel, char const * message, int ret)
|
||||||
|
|
||||||
static int _error_text(char const * message, int ret)
|
static int _error_text(char const * message, int ret)
|
||||||
{
|
{
|
||||||
fputs("panel: ", stderr);
|
fputs(PACKAGE ": ", stderr);
|
||||||
perror(message);
|
perror(message);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,10 +15,10 @@ cppflags=-D PREFIX=\"$(PREFIX)\"
|
||||||
install=$(BINDIR)
|
install=$(BINDIR)
|
||||||
|
|
||||||
[main.c]
|
[main.c]
|
||||||
depends=common.h
|
depends=common.h,../config.h
|
||||||
|
|
||||||
[panel.c]
|
[panel.c]
|
||||||
depends=common.h,../include/Panel.h
|
depends=common.h,../include/Panel.h,../config.h
|
||||||
|
|
||||||
[run]
|
[run]
|
||||||
type=binary
|
type=binary
|
||||||
|
|
Loading…
Reference in New Issue
Block a user