home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 22 gnu
/
22-gnu.zip
/
gnusrvr2.zip
/
makefile
< prev
next >
Wrap
Makefile
|
1997-05-14
|
2KB
|
66 lines
CC = gcc
DEFINES= -DOS2_EMX
RELEASE= gnuserv-2.1alpha
# Add a -I flag pointing make at the directory where it can get your
# emacs' config.h file (usually "src" underneath the top of your emacs tree)
# If you don't have access to your emacs source tree, edit config.h.proto
# appropriately, and rename it to config.h in the current directory
INCLUDES = -I.
# If you don't want xauth(1X11)-style authentication compiled in, remove
# the define of AUTH_MAGIC_COOKIE from gnuserv.h, and comment out the
# definitions of X11_INCLUDE, X11_LIBRARY and AUTHLIBS below...
# You may need to edit X11_INCLUDE AND X11_LIBRARY so that the
# compiler can find the X11/Xauth.h include file and the libXau.a library
X11_INCLUDE=
X11_LIBRARY=
AUTHLIBS= -lsocket
CFLAGS= -g $(DEFINES) $(INCLUDES) $(X11_INCLUDE)
DEST= /usr/local/bin
# You shouldn't need to change anything below this point.
OBJS= gnuclient.o gnudoit.o gnuserv.o gnuslib.o
ALL= gnuclient.exe gnudoit.exe gnuserv.exe
all: $(ALL)
gnuclient.exe: gnuclient.o gnuslib.o gnuserv.h
$(CC) $(CFLAGS) -o gnuclient.exe gnuclient.o gnuslib.o $(AUTHLIBS)
gnudoit.exe: gnudoit.o gnuslib.o gnuserv.h
$(CC) $(CFLAGS) -o gnudoit.exe gnudoit.o gnuslib.o $(AUTHLIBS)
gnuserv.exe: gnuserv.o gnuslib.o gnuserv.h
$(CC) $(CFLAGS) -o gnuserv.exe gnuserv.o gnuslib.o $(AUTHLIBS)
install: $(ALL)
mv $(ALL) $(DEST)
clean:
/bin/rm -f $(ALL) *.o *~
tarchive: clean
- mkdir /tmp/$(RELEASE)
- /bin/rm -rf /tmp/$(RELEASE)/*
tar cf - * | (cd /tmp/$(RELEASE) ; tar xf - )
/bin/rm -rf /tmp/$(RELEASE)/{RCS,config.h,*.orig}
(cd /tmp; tar cf /tmp/$(RELEASE).tar $(RELEASE))
gzip /tmp/$(RELEASE).tar
/bin/rm -rf /tmp/$(RELEASE)
mv -i /tmp/$(RELEASE).tar.gz /home/ftp/pub
# DO NOT DELETE THIS LINE -- make depend depends on it.
gnuclient.o: gnuserv.h
gnudoit.o: gnuserv.h
gnuserv.o: gnuserv.h
gnuslib.o: gnuserv.h