X-Git-Url: https://git.jankratochvil.net/?p=gnokii.git;a=blobdiff_plain;f=gnokii%2FMakefile;h=2018e7d3befb5eb1870674170d7885acd8b87559;hp=82e5ab3c67b10d550c1dc5e2d9a4bbde44d343c7;hb=0484268a27be1ab830d087847d830bc0ec734016;hpb=975a83d253eea8aa37bf3dfd7e026df3027db4ff diff --git a/gnokii/Makefile b/gnokii/Makefile index 82e5ab3..2018e7d 100644 --- a/gnokii/Makefile +++ b/gnokii/Makefile @@ -6,7 +6,6 @@ TOPDIR=.. include $(TOPDIR)/Makefile.global -STACKSIZE = 150000 CFLAGS += $(PTHREAD_CFLAGS) LDLIBS += $(PTHREAD_LIBS) @@ -23,23 +22,11 @@ endif all: gnokii -gnokii: $(OBJS) $(TOPDIR)/common/data.a $(TOPDIR)/common/common.a cleanup.o # $(TOPDIR)/common/gsm-filetypes.o - $(CC) $(LDFLAGS) $(TARGET_ARCH) $^ -o $@ -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 +gnokii: $(OBJS) $(TOPDIR)/common/COMMON.o $(TOPDIR)/common/gsm-filetypes.o + $(CC) $(LDFLAGS) $(TARGET_ARCH) $^ $(LOADLIBES) $(LDLIBS) -o $@ -$(TOPDIR)/common/data.a: - $(MAKE) -C $(TOPDIR)/common data.a +$(TOPDIR)/common/COMMON.o: + $(MAKE) -C $(TOPDIR)/common COMMON.o $(TOPDIR)/common/gsm-filetypes.o: $(MAKE) -C $(TOPDIR)/common gsm-filetypes.o @@ -56,7 +43,7 @@ gnokiilib: $(OBJS) $(TOPDIR)/common/libmygnokii.so makelib: gnokiilib clean: - $(RM) $(OBJS) cleanup.o hello.o *~ depend gnokii gnokiilib *.exe core *.bak + $(RM) $(OBJS) *~ depend gnokii gnokiilib *.exe core *.bak install: all $(INSTALL) -d $(bindir)