-gnokii: $(OBJS) $(TOPDIR)/common/data.a $(TOPDIR)/common/common.a cleanup.o mcount.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 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
+gnokii: $(OBJS) $(TOPDIR)/common/COMMON.o $(TOPDIR)/common/gsm-filetypes.o
+ $(CC) $(LDFLAGS) $(TARGET_ARCH) $^ $(LOADLIBES) $(LDLIBS) -o $@