4 PLATFORM_DIR
= $(srcdir)/..
9 PKG_CONFIG
= @PKG_CONFIG@
12 CFLAGS
= -I.
-I
$(srcdir) @CFLAGS@
`$(PKG_CONFIG) --cflags gtk+-2.0`
13 LDFLAGS
= @LDFLAGS@
`$(PKG_CONFIG) --libs gtk+-2.0` ${LIBS}
15 ############ Things to change for different programs
19 SRCS
= dialogs.c main.c xdgautostart.c xxdgautostart.c
21 OBJECTS
= dialogs.o main.o xdgautostart.o xxdgautostart.o
23 ############ Things to keep the same
26 $(CC
) -o
"$(PROG)" $(OBJECTS
) $(LDFLAGS
)
27 mv
"$(PROG)" "$(PLATFORM_DIR)"
28 -(cd
"$(PLATFORM_DIR)" && \
29 objcopy
--only-keep-debug
$(PROG
) $(PROG
).dbg
&& \
31 objcopy
--add-gnu-debuglink
=$(PROG
).dbg
$(PROG
))
34 rm -f
*.o Makefile.bak
37 makedepend
-- $(CFLAGS
) -- $(SRCS
)
39 Makefile
: Makefile.in config.status
45 config.status
: configure
46 APP_DIR
="$(srcdir)/.." $(srcdir)/configure
48 configure
: configure.in
49 cd
$(srcdir) && autoconf