~ubuntu-branches/ubuntu/trusty/trayer/trusty-proposed

« back to all changes in this revision

Viewing changes to .pc/0002-Makefile.common-add-CPPFLAGS-to-compilation-rules.patch/Makefile.common

  • Committer: Package Import Robot
  • Author(s): David Bremner
  • Date: 2013-08-12 14:38:34 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20130812143834-f8s9s2butte08awv
Tags: 1.1.5-1
* New upstream release
* remove suggests on menu (Closes: #647381).
* Bump standards version (no changes)
* Add hardening flags

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
ifeq (,$(TOPDIR))
 
2
$(error TOPDIR variable must be defined)
 
3
endif
 
4
 
 
5
all:
 
6
 
 
7
$(TOPDIR)/Makefile.config:
 
8
        $(error Please run $(TOPDIR)/configure first)
 
9
 
 
10
ifneq ($(MAKECMDGOALS),clean)
 
11
ifneq ($(MAKECMDGOALS),distclean)
 
12
ifneq ($(MAKECMDGOALS),tar)
 
13
-include $(TOPDIR)/Makefile.config
 
14
endif
 
15
endif
 
16
endif
 
17
 
 
18
CC ?= gcc
 
19
LIBS = $(shell pkg-config --libs gtk+-2.0 gdk-pixbuf-2.0 gdk-pixbuf-xlib-2.0) -lX11 -L/usr/X11R6/lib  -lXmu
 
20
INCS = $(shell pkg-config --cflags gtk+-2.0 gdk-pixbuf-2.0 gdk-pixbuf-xlib-2.0)
 
21
CFLAGS ?= -O2 -Wall
 
22
ifneq (,$(DEVEL))
 
23
CFLAGS ?= -g -Wall 
 
24
endif
 
25
 
 
26
%.o: %.c
 
27
        $(CC) $(CFLAGS) $(INCS) -c $<
 
28
 
 
29
%.dep: %.c
 
30
        $(CC) $(CFLAGS) $(INCS) -MM $< -o $@
 
31
 
 
32
.PHONY: all clean distclean install uninstall
 
33
 
 
34
distclean: clean
 
35
install: all