hi, I have a following makefile which is used to compile the program at school (solaris, unix system). I want to compile and run same programs at home (suse 8.2)....what do i need to change to compile these....? makefile.. -------------- # Use the gcc compiler CC = gcc # Debug Options DEBUG = -O # C flags required CFLAGS = $(DEBUG) # X libraries LIBS = -lXm -lXt -lX11 TARGETS= memo3 xecute all: $(TARGETS) memo3: memo3.o $(CC) $(CFLAGS) -o $@ $@.o $(LIBS) echo "memo3.c compiled successfully" xecute: xecute.o $(CC) $(CFLAGS) -o $@ $@.o $(LIBS) echo "xecute.c compiled successfully" clean: rm -f *.o *~* *.a rm -f $(TARGETS) ------------------------------------------------------- Thanks for your help, Shin, _________________________________________________________________ Get 10MB of e-mail storage! Sign up for Hotmail Extra Storage. http://join.msn.com/?PAGE=features/es
On Wednesday 10 September 2003 12:08, Chun Ki Shin wrote:
hi,
I have a following makefile which is used to compile the program at school (solaris, unix system). I want to compile and run same programs at home (suse 8.2)....what do i need to change to compile these....?
It looks to me like you could change the "-O" in the DEBUG variable to a "-g" and it might work. --
eatapple core dump
participants (2)
-
Chun Ki Shin
-
Derek Fountain