Makefile
上传用户:eo_sii
上传日期:2007-01-05
资源大小:91k
文件大小:1k
- # Uncomment for LibC 5 Linux platform (SlackWare)
- #PLATFORM = LINUX
- #CFLAGS = -O2
- #CC = gcc
- # Uncomment for LibC 6 Linux platform (RedHat 5)
- PLATFORM = LINUX_LC6 # for GNU LibC 6
- CFLAGS = -O2
- CC = gcc
- # Uncomment for HP-UX platform (HP-UX 10.20)
- #PLATFORM = HPUX
- #CFLAGS = -Ae
- #CC = cc
- # Uncomment for Solaris platform
- #PLATFORM = SOLARIS
- #CFLAGS = -O
- #CC = gcc
- #LIBS = -lsocket -lnsl -lresolv
- # Uncomment for debugging
- #DEBUG = -DINCL_DEBUG_CODE
- DEFINES = -D$(PLATFORM) $(DEBUG)
- PREFIX = /usr/local
- BINDIR = $(PREFIX)/bin
- MANDIR = $(PREFIX)/man
- #=============================================================
- sendsms: sendsms.o
- $(CC) -o sendsms sendsms.o $(LIBS)
- sendsms.o: sendsms.c sendsms.h
- $(CC) $(CFLAGS) $(DEFINES) -c sendsms.c
- stuff.o: stuff.c sms_serv.h
- $(CC) $(CFLAGS) $(DEFINES) -c stuff.c
-
- listing:
- nenscript -G Makefile sendsms.c sendsms.h BUGS TODO INSTALL
- man -l ./sendsms.1 -t | lpr
- install:
- cp sendsms $(BINDIR)
- strip $(BINDIR)/sendsms
- chmod 755 $(BINDIR)/sendsms
- chown root:bin $(BINDIR)/sendsms
- cp sendsms.1 $(MANDIR)/man1
- chmod 644 $(MANDIR)/man1/sendsms.1
- chown root:bin $(MANDIR)/man1/sendsms.1
- clean:
- rm -f core sendsms *.o *~