File: Makefile

package info (click to toggle)
slocate 2.4-2potato1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 228 kB
  • ctags: 177
  • sloc: ansic: 1,921; sh: 294; makefile: 59
file content (23 lines) | stat: -rw-r--r-- 394 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
CC=gcc
OBJS = main.o link.o misc.o
# Only if system does not have fts locally
#OBJS += sl_fts.o
PROG = slocate
#PG= -g3
CFLAGS = -O2 -Wall
#LDFLAGS = -lefence
#DEFINES=-DDEBUG

$(PROG): $(OBJS)
	$(CC) $(PG) $(DEFINES) $(LDFLAGS) -o $(PROG) $(OBJS)

clean:
	rm -f core $(PROG) *.o *~

%.o: %.c
	$(CC) $(PG) $(DEFINES) $(CFLAGS) -c -o $@ $<
	
install: $(PROG)
	/bin/sh ./install

.PHONY: install