home *** CD-ROM | disk | FTP | other *** search
Makefile | 1997-09-18 | 2.5 KB | 95 lines |
- #
- # Copyright (c) 1997 Microsoft Corp. All Rights Reserved
- #
- # File: votebot/server/UNIX Makefile
- # FrontPage VoteBot Sample Component: UNIX Makefile
- #
- # Generates votebot.exe and votesrvr.so (equivalent of Win32 votesrvr.dll)
- #
- # Uncomment the section which corresponds to the platform on which
- # you are compiling. The non-SGI UNIX section is the currently selected
- # platform, and it generates release code.
- #
- # Note: In order for these files to work on UNIX, you may have to convert
- # to UNIX format by removing the CR (^M) characters at the end of each line.
- #
-
- #
- #################################################################
- # If you are compiling for use on a non-SGI Unix platform, uncomment
- # the following lines
- #
- CC = gcc
- CFLAGS = -c -Wall -DUNIX -DNDEBUG -fPIC $(COPT)
- COUT = -o $@
- LD_DLL_FLAGS = -nostdlib -shared
- LDBINOUT = -o $@
- CHMOD =
- EXE_LINK_FLAGS = -lstdc++ -lm
- #
- # Then, uncomment one set:
- #
- COPT = -O2 # Release
- BIN = Release
- #
- # COPT = -g # Debug
- # BIN = Debug
-
-
- #################################################################
- # If you are compiling for SGI, uncomment the following lines
- #
- # CC = gcc
- # CFLAGS = -c -Wall -DUNIX -DNDEBUG -DSGI -fPIC $(COPT)
- # COUT = -o $@
- # LD_DLL_FLAGS = -nostdlib -shared -Xlinker -update_registry -Xlinker \
- # /tmp/so_locations
- # LDBINOUT = -o $@
- # CHMOD = chmod 777 /tmp/so_locations
- # EXE_LINK_FLAGS = -lstdc++ -lm
- #
- # Then, uncomment one set:
- #
- # COPT = -O2 # Release
- # BIN = Release
- # COPT = -g # Debug
- # BIN = Debug
-
- # endif
- #
- #################################################################
- # You should not have to change the rest of the makefile
- #
-
- VOTESRV_OBJS = $(BIN)/votesrv.obj $(BIN)/votefile.obj
- VOTECOUNT_OBJS = $(BIN)/votecount.obj $(BIN)/votefile.obj
-
-
- all: $(BIN) $(BIN)/votebot.exe $(BIN)/votesrvr.so
-
- $(BIN):
- mkdir $(BIN)
-
- $(BIN)/votesrvr.so: $(VOTESRV_OBJS)
- $(CC) $(LD_DLL_FLAGS) $(VOTESRV_OBJS) $(LDBINOUT)
- $(CHMOD)
-
- $(BIN)/votebot.exe: $(VOTECOUNT_OBJS)
- $(CC) $(VOTECOUNT_OBJS) $(LDBINOUT) $(EXE_LINK_FLAGS)
-
- $(BIN)/votesrv.obj: votesrv.cpp votecount.h votefile.h ../../webbot.h
- $(CC) $(CFLAGS) votesrv.cpp $(COUT)
-
- $(BIN)/votecount.obj: votecount.cpp votecount.h votefile.h
- $(CC) $(CFLAGS) votecount.cpp $(COUT)
-
- $(BIN)/votefile.obj: votefile.cpp votefile.h
- $(CC) $(CFLAGS) votefile.cpp $(COUT)
-
- #votefile.cpp: votefile.h
- # $(CC) $(CFLAGS) votefile.cpp $(COUT)
-
- #votecount.cpp: votecount.h votefile.h
- # $(CC) $(CFLAGS) votecount.cpp $(COUT)
-
-