~indicator-applet-developers/notify-osd/trunk

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: David Barth
  • Date: 2008-11-20 19:08:34 UTC
  • Revision ID: david.barth@canonical.com-20081120190834-rzwa3jzhn7q5w6bt
autotool'ization

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
APP     = notification-test-cairo
2
 
 
3
 
CC      = gcc
4
 
 
5
 
CFLAGS  = -Wall -Werror -c -g -std=c99 \
6
 
          `pkg-config --cflags gtk+-2.0`
7
 
 
8
 
LDFLAGS = `pkg-config --libs gtk+-2.0`
9
 
 
10
 
SRCS    = main.c \
11
 
 
12
 
OBJS    = $(SRCS:.c=.o)
13
 
 
14
 
all: $(APP)
15
 
 
16
 
.c.o:
17
 
        $(CC) $(CFLAGS) -c $< -o $@
18
 
 
19
 
# it is important that $(OBJS) stands _before_ $(LDFLAGS)
20
 
$(APP): $(OBJS)
21
 
        $(CC) $(OBJS) $(LDFLAGS) -o$(APP)
22
 
 
23
 
clean:
24
 
        rm -f *.o *~ $(APP)