File: Makefile

package info (click to toggle)
gdict 0.7-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 80 kB
  • ctags: 18
  • sloc: ansic: 287; makefile: 62
file content (28 lines) | stat: -rw-r--r-- 522 bytes parent folder | download
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
# Makefile for gdict

CC	= gcc
CFLAGS	= -O6 -Wall
CFL_GTK	= $(CFLAGS) `gtk-config --cflags` `gtk-config --libs`
CFL	= $(CFLAGS)
OBJECTS_GDICT	= gdict.c 
OBJECTS_DICT	= dict.c

all: gdict dict
install:
	install -m 0755 -s gdict /usr/local/bin/gdict
	install -m 0755 -s dict /usr/local/bin/dict

gdict:	$(OBJECTS_GDICT)
	$(CC) $(CFL_GTK) $(OBJECTS_GDICT) -o gdict

dict: 	$(OBJECTS_DICT)
	$(CC) $(CFL) $(OBJECTS_DICT) -o dict

clean:	
	if [ -f ./gdict ]; \
		then rm gdict; \
	fi

	if [ -f ./dict ]; \
		then rm dict; \
	fi