View Single Post
Old 07-07-2002, 01:24 AM   #15
Robbert
Member
 
Join Date: Apr 2002
Location: #### Paso, Tx
Posts: 89
Robbert is on a distinguished road
Send a message via ICQ to Robbert Send a message via AIM to Robbert
Try this:
[code] CC = gcc
PROF =
DEBUG = -g
O_FLAGS = -O
C_FLAGS = -Wall $(PROF) $(DEBUG) $(NOCRYPT) -DNOCRYPT -DOLD_RAND
L_FLAGS = $(O_FLAGS) $(PROF)

O_FILES = act_comm.o act_enter.o act_info.o act_move.o act_obj.o act_wiz.o \
alias.o auction.o ban.o bit.o cmdedit.o comm.o const.o db.o db2.o \
effects.o fight.o flags.o gedit.o handler.o healer.o hedit.o interp.o \
lookup.o magic.o mem.o mob_cmds.o mob_prog.o music.o note.o \
olc.o olc_act.o olc_save.o skills.o pedit.o quest.o recycle.o remort.o \
save.o scan.o sedit.o skedit.o special.o stars.o string.o subway.o \
tables.o tablesave.o update.o whohtml.o


unholy; $(O_FILES)
rm -f unholy
$(CC) $(L_FLAGS) -o unholy $(O_FILES)

.c.o; unholy.h
$(CC) -c $(C_FLAGS) -DNOCRYPT -Dunix $<
[/quote]

I did some changes to it, based on deduction on how Cygwin operates - I've never used it, so can't be sure. I don't remember if Cygwin does profiling or not, so I've removed the profiling flags, and put the debug back in their own tag like they should be. I'm not positive, but I think the other problem with yours was the inclusion of $(LIBS) in the makefile, with no libraries defined - it may be that they are included in the Cygwin system somewhere or something else of which I'm not aware. I modelled my modified makefile off of one from a Cygwin makefile, and am making a -lot- of assumptions on how the whole thing operates. Anyhow, try that and see if it's any better.
Robbert is offline   Reply With Quote