File: Makefile

package info (click to toggle)
snowflake 0.01a-7
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 324 kB
  • ctags: 488
  • sloc: ansic: 4,606; makefile: 58
file content (29 lines) | stat: -rw-r--r-- 490 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Makefile

CC = gcc

SRCS = sf.c sf_control.c sf_generate.c sf_view.c getopt.c
OBJS = $(SRCS:.c=.o)

HDRS = sf.h getopt.h
INCS = sf_snowflake_xpm.h

all: snowflake

.c.o:
	$(CC) `gtk-config --cflags` -c $*.c -o $*.o

snowflake: $(OBJS)
	$(CC) `gtk-config --libs` $(OBJS) -o $@

getopt: getopt.c
	$(CC) -DTEST_LONG_OPTIONS $< -o $@

clean: 
	rm -f *~ *.o snowflake

sf.o:          $(HDRS)
sf_control.o:  $(HDRS)
sf_generate.o: $(HDRS)
sf_view.o:     $(HDRS) $(INCS)
getopt.o:       getopt.h