Makefile 508 B

12345678910111213141516171819202122
  1. TOPDIR=../
  2. include $(TOPDIR)Rules.make
  3. CFLAGS = -Wall -Os -fomit-frame-pointer -fno-builtin -nostdinc -I$(TOPDIR)include -I/usr/include/linux
  4. LDFLAGS = -nostdlib -s
  5. EXTRA_LIBS=/home/andersen/CVS/uC-libc/libc.a
  6. # Allow alternative stripping tools to be used...
  7. ifndef $(STRIPTOOL)
  8. STRIPTOOL = strip
  9. endif
  10. STRIP = $(STRIPTOOL) --remove-section=.note --remove-section=.comment $@
  11. hello: hello.c Makefile
  12. $(CC) $(CFLAGS) $(LDFLAGS) $< -o $@ $(EXTRA_LIBS)
  13. $(STRIP)
  14. clean:
  15. rm -f *.[oa] *~ core hello