File: Makefile

package info (click to toggle)
moxftp 2.2-18.1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 4,160 kB
  • ctags: 3,837
  • sloc: ansic: 43,420; makefile: 353; perl: 262; sh: 192
file content (79 lines) | stat: -rw-r--r-- 2,945 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# Generated automatically from Makefile.in by configure.
#
# This make file will not update fb_rs.c, Xftp.ad, Oftp.ad, or Mftp.ad,
# mftp.man, xftp.man, oftp.man.
# Normal you should not have to worry about this.
# If you do want modify fb_rs.c,  Xftp.ad, Oftp.ad, or Mftp.ad,
# mftp.man, xftp.man, oftp.man you need a working xmkmf and perl.
#
srcdir  = .
bindir  = /usr/X11R6/bin
 VPATH  = .
 SHELL  = /bin/sh
SUBDIRS = Wcl-2.4
TOOLKIT = xaw
PROGRAM = xftp
   LIBS =  -LWcl-2.4/Wc -lWc -LWcl-2.4/Xp -lXp -L/usr/X11R6/lib -lXaw -lXmu -lXt -lXext -lX11  -lnsl -lm
     TK = Xp
  ANAME = Xftp
 APPDEF = /etc/X11/app-defaults
OPENWIN = 
INSTALL = /usr/bin/install -c
   OPT  =  -O 
INSTALL_PROGRAM = $(INSTALL)

        APP_RES = -DAPP_RES=\"$(APPDEF)/$(ANAME)\"
        NET_RC  = -DNET_RC=\"$(APPDEF)/example.netrc\"

  DEFINES =  -I. $(APP_RES) $(NET_RC) $(OPENWIN)
   CFLAGS = $(OPT) $(DEFINES)  -DRETSIGTYPE=void -DXAW -I/usr/X11R6/include -DHAVE_UNISTD_H=1 $(STD_INCLUDES)

TOOLKITSRC= $(TOOLKIT).c
TOOLKITOBJ= $(TOOLKIT).o

      SRCS_STANDARD = main.c ftp.c callftp.c connect.c login.c  wc_hooks.c \
                      disconnect.c remote_dir.c pwd.c peek.c syst.c \
                      bsdstrstr.c get.c lcd.c cd.c initialize.c dir_subs.c \
                      local_dir.c put.c mkdir.c type.c fb_rs.c version.c \
                      regerror.c regexp.c regsub.c translate.c help.c \
                      tran_table.c sort.c  noop.c List.c ListSW.c time.c \
                      tm_to_time.c archie.c popen.c icons.c myfgets.c \
                      view.c reconnect.c callback.c dialog.c do.c \
                      LabelQUICK.c setenv.c  $(TOOLKITSRC)
      OBJS_STANDARD = main.o ftp.o callftp.o connect.o login.o  wc_hooks.o \
                      disconnect.o remote_dir.o pwd.o peek.o syst.o \
                      bsdstrstr.o get.o lcd.o cd.o initialize.o dir_subs.o \
                      local_dir.o put.o mkdir.o type.o fb_rs.o version.o \
                      regerror.o regexp.o regsub.o translate.o  help.o \
                      tran_table.o sort.o noop.o List.o ListSW.o time.o  \
                      tm_to_time.o  archie.o popen.o icons.o myfgets.o \
                      view.o  reconnect.o callback.o dialog.o do.o \
                      LabelQUICK.o  setenv.o $(TOOLKITOBJ)

all:	$(PROGRAM)

clean:
	rm -f xftp oftp mftp *.o core *~
	for i in $(SUBDIRS) ; do \
		echo Making clean in ./$${i} ... ; \
		( cd $$i ; $(MAKE) clean ) ; \
	done 

$(PROGRAM): Wcl-2.4/Wc/libWc.a Wcl-2.4/$(TK)/lib$(TK).a $(OBJS_STANDARD) 
	$(CC) $(CFLAGS) -o $@ $(OBJS_STANDARD) $(LIBS)


Wcl-2.4/$(TK)/lib$(TK).a Wcl-2.4/Wc/libWc.a: 
	for i in $(SUBDIRS) ; do \
		echo Making all in ./$${i} ... ; \
		( cd $$i ; $(MAKE) all ) ; \
	done

install: $(PROGRAM)
	$(INSTALL_PROGRAM) $(PROGRAM) $(bindir)/$(PROGRAM)
	$(INSTALL_PROGRAM) $(ANAME).ad $(APPDEF)/$(ANAME)

uninstall:
	rm $(bindir)/$(PROGRAM)
	rm $(APPDEF)/$(ANAME)