From: short <> Date: Wed, 27 Feb 2002 22:49:07 +0000 (+0000) Subject: Not yet working stack checking (symbol STACKCHECK) X-Git-Tag: uc_works1~25 X-Git-Url: https://git.jankratochvil.net/?p=gnokii.git;a=commitdiff_plain;h=28c1f486126d510c51033eea2385d61a11ebe789;hp=af46b998d06d0fb5c322ff519ea04fc28eaa47c9 Not yet working stack checking (symbol STACKCHECK) Forced stack size to 150000 --- diff --git a/gnokii/Makefile b/gnokii/Makefile index 9783b42..e6d7b5f 100644 --- a/gnokii/Makefile +++ b/gnokii/Makefile @@ -6,6 +6,7 @@ TOPDIR=.. include $(TOPDIR)/Makefile.global +STACKSIZE = 150000 CFLAGS += $(PTHREAD_CFLAGS) LDLIBS += $(PTHREAD_LIBS) @@ -22,9 +23,23 @@ endif all: gnokii -gnokii: $(OBJS) $(TOPDIR)/common/data.a $(TOPDIR)/common/common.a cleanup.o # $(TOPDIR)/common/gsm-filetypes.o +gnokii: $(OBJS) $(TOPDIR)/common/data.a $(TOPDIR)/common/common.a cleanup.o mcount.o # $(TOPDIR)/common/gsm-filetypes.o $(CC) $(LDFLAGS) $(TARGET_ARCH) $^ -o $@ -#-L../common -lcommon ##$(LOADLIBES) $(LDLIBS) +ifneq "" "$(findstring -DUCCOMPAT,$(CPPFLAGS))" + /opt/uClinux/m68k-pic-coff/bin/coff2flt -o gnokii -s $(STACKSIZE) gnokii.coff +endif + +hello: hello.o cleanup.o mcount.o + $(CC) $(LDFLAGS) $(TARGET_ARCH) $^ -o $@ + +hello.o: hello.c + $(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $^ -o $@ + +cleanup.o: cleanup.c + $(CC) $(filter-out -pg,$(CFLAGS)) $(CPPFLAGS) $(TARGET_ARCH) -c $^ -o $@ + +mcount.o: mcount.c + $(CC) $(filter-out -pg,$(CFLAGS)) $(CPPFLAGS) $(TARGET_ARCH) -c $^ -o $@ $(TOPDIR)/common/common.a: $(MAKE) -C $(TOPDIR)/common common.a @@ -47,7 +62,7 @@ gnokiilib: $(OBJS) $(TOPDIR)/common/libmygnokii.so makelib: gnokiilib clean: - $(RM) $(OBJS) cleanup.o *~ depend gnokii gnokiilib *.exe core *.bak + $(RM) $(OBJS) cleanup.o mcount.o *~ depend gnokii gnokiilib *.exe core *.bak install: all $(INSTALL) -d $(bindir)