home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / misc / amigem.lha / amigem / exec / makefile < prev    next >
Encoding:
Makefile  |  1995-02-01  |  627 b   |  22 lines

  1. PREINCLUDE=exec/devices exec/semaphores exec/io exec/memory dos/dos
  2.  
  3. TARGET=exec
  4. LIBBASE=SysBase
  5. LIBTYPE=struct ExecBase
  6. OBJECTS=startup.o semaphores.o lists.o tasks.o signals.o messages.o memory.o devices.o \
  7. init.o libraries.o interrupts.o misc.o machine.o resources.o resident.o kernel.o \
  8. rawdofmt.o
  9. LIBS=../expansion/libexpansion.a
  10.  
  11. CC=gcc
  12. CFLAGS=-Wall -freg-struct-return -O3
  13.  
  14. include ../macro/makefile
  15.  
  16. %.o: %.c
  17.     $(CC) $(CFLAGS) -I .. -c $^ 2>&1|tee $*.err
  18.     -if test ! -s $*.err; then rm $*.err; fi
  19.  
  20. $(TARGET).library: $(OBJECTS) $(TARGET)_functable.o lib$(TARGET).a lib_$(TARGET).a $(LIBS)
  21.     $(CC) -nostdlib -s $^ -o $@
  22.