-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
45 lines (37 loc) · 1.19 KB
/
Makefile
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# This file is part of fspy
# #########################
BUILD = $(shell date +%Y%m%d%H)
#DEBUG = -g -D_DEBUG
OPTS = -DMAJORVERSION=0 -DMINORVERSION=1 -DSUBMINORVERSION=1 -DBUILD=$(BUILD) -DCODENAME=\"25c3\"
CFLAGS = -Wall
SDIR = src/
ODIR = obj/
INSTBINDIR = /usr/local/bin
SRCS = $(SDIR)fspy.c $(SDIR)enumdirs.c $(SDIR)fsevents.c $(SDIR)isnumber.c $(SDIR)stating.c $(SDIR)output.c $(SDIR)regmatch.c $(SDIR)numlen.c $(SDIR)adaptive.c $(SDIR)diff.c
OBJS = $(ODIR)fspy.o $(ODIR)enumdirs.o $(ODIR)fsevents.o $(ODIR)isnumber.o $(ODIR)stating.o $(ODIR)output.o $(ODIR)regmatch.o $(ODIR)numlen.o $(ODIR)adaptive.o $(ODIR)diff.o
CC = gcc
LD = gcc
LDFLAGS =
DFLAGS =
RM = /bin/rm
PROG = fspy
all: $(PROG)
$(PROG): $(OBJS)
$(LD) $(LDFLAGS) $(DFLAGS) $(DEBUG) $(OPTS) $(OBJS) -o $(PROG)
$(ODIR)%.o: $(SDIR)%.c
$(CC) $(CFLAGS) $(LDFLAGS) $(DFLAGS) $(DEBUG) $(OPTS) -c $< -o $(ODIR)$*.o
install:
cp $(PROG) $(INSTBINDIR)/$(PROG)
clean:
$(RM) $(PROG) $(ODIR)*.o
# DO NOT DELETE THIS LINE -- make depend depends on it.
fspy.o: fspy.h
enumdirs.o: enumdirs.h
fsevents.o: fsevents.h
isnumber.o: isnumber.h
stating.o: stating.h
output.o: output.h
regmatch.o: regmatch.h
numlen.o: numlen.h
adaptive.o: adaptive.h
diff.o: diff.h