26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
appfsd: appfsd.o
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o appfsd appfsd.o $(LIBS)
appfsd.o: appfsd.c appfsd.tcl.h
$(CC) $(CPPFLAGS) $(CFLAGS) -o appfsd.o -c appfsd.c
appfsd.tcl.h: appfsd.tcl
sed 's@[\\"]@\\&@g;s@^@ "@;s@$$@\\n"@' appfsd.tcl > appfsd.tcl.h.new
mv appfsd.tcl.h.new appfsd.tcl.h
install: appfsd
if [ ! -d '$(DESTDIR)$(sbindir)' ]; then mkdir -p '$(DESTDIR)$(sbindir)'; chmod 755 '$(DESTDIR)$(sbindir)'; fi
cp appfsd '$(DESTDIR)$(sbindir)/'
clean:
|
|
|
|
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
appfsd: appfsd.o
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o appfsd appfsd.o $(LIBS)
appfsd.o: appfsd.c appfsd.tcl.h
$(CC) $(CPPFLAGS) $(CFLAGS) -o appfsd.o -c appfsd.c
appfsd.tcl.h: appfsd.tcl sha1.tcl
sed '/@@SHA1\.TCL@@/ r sha1.tcl' appfsd.tcl | sed '/@@SHA1\.TCL@@/ d' | sed 's@[\\"]@\\&@g;s@^@ "@;s@$$@\\n"@' > appfsd.tcl.h.new
mv appfsd.tcl.h.new appfsd.tcl.h
install: appfsd
if [ ! -d '$(DESTDIR)$(sbindir)' ]; then mkdir -p '$(DESTDIR)$(sbindir)'; chmod 755 '$(DESTDIR)$(sbindir)'; fi
cp appfsd '$(DESTDIR)$(sbindir)/'
clean:
|