X-Git-Url: https://git.jankratochvil.net/?p=gnokii.git;a=blobdiff_plain;f=gnokii%2FMakefile;h=82e5ab3c67b10d550c1dc5e2d9a4bbde44d343c7;hp=9783b4261a332eecb83924e6dc4466a4534afc4b;hb=c383a7c19fe5db4b7b7ec3b8b5bba21dda7ce3d1;hpb=c7dcdfd34d2bed9cc64c5c9603e51ef8c8271951 diff --git a/gnokii/Makefile b/gnokii/Makefile index 9783b42..82e5ab3 100644 --- a/gnokii/Makefile +++ b/gnokii/Makefile @@ -6,6 +6,7 @@ TOPDIR=.. include $(TOPDIR)/Makefile.global +STACKSIZE = 150000 CFLAGS += $(PTHREAD_CFLAGS) LDLIBS += $(PTHREAD_LIBS) @@ -24,7 +25,15 @@ all: gnokii gnokii: $(OBJS) $(TOPDIR)/common/data.a $(TOPDIR)/common/common.a cleanup.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 + $(CC) $(LDFLAGS) $(TARGET_ARCH) $^ -o $@ + +cleanup.o: cleanup.c + $(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c -o $@ $< $(TOPDIR)/common/common.a: $(MAKE) -C $(TOPDIR)/common common.a @@ -47,7 +56,7 @@ gnokiilib: $(OBJS) $(TOPDIR)/common/libmygnokii.so makelib: gnokiilib clean: - $(RM) $(OBJS) cleanup.o *~ depend gnokii gnokiilib *.exe core *.bak + $(RM) $(OBJS) cleanup.o hello.o *~ depend gnokii gnokiilib *.exe core *.bak install: all $(INSTALL) -d $(bindir)