home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 13 / AACD13.ISO / AACD / Graphics / PPT / pluginsrc / sample_effect / Makefile < prev    next >
Makefile  |  1999-01-13  |  1KB  |  55 lines

  1. #
  2. # This is a generic effect makefile for GCC and GNU make.
  3. # It also assumes that you have binutils installed.
  4. #
  5. # $Id: Makefile,v 1.2 1999/01/13 23:17:00 jj Exp jj $
  6. #
  7.  
  8. NAME = sample_effect
  9.  
  10. # Source files
  11.  
  12. SRCS=$(NAME).c
  13. OBJS := $(patsubst %.c,%.o,$(wildcard *.c))
  14.  
  15. # Other stuff. Nothing of major importance.
  16.  
  17. # The MAINDIR directive tells where your PPT main directory
  18. # is, so you should set it up before you try to install.
  19.  
  20. MAINDIR=/work/source/c/ppt
  21. INSTDIR=modules
  22. INCDIR=$(MAINDIR)/include
  23.  
  24. # Which startup code should we use?
  25. # Be sure that you use the correct one...
  26.  
  27. LIBINIT    = /ade/lib/libnix/libinitr.o
  28.  
  29. EXE=$(NAME).effect
  30. EXE020=$(NAME)_020.effect
  31.  
  32. CC     = gcc
  33. CFLAGS     = -fstrength-reduce -Wall -resident -noixemul -msmall-code \
  34.       -I$(INCDIR) -g -nostartfiles -O2 -fomit-frame-pointer
  35. LDFLAGS    =
  36.  
  37.  
  38. all : $(EXE)
  39.  
  40. $(EXE) : $(OBJS)
  41.     $(CC) $(CFLAGS) $(LIBINIT) $(OBJS) -o $(EXE) $(LDFLAGS)
  42.  
  43. clean:
  44.     Delete \#?.lnk \#?~ 020/\#?.o 000/\#?.o \#?.o
  45.  
  46. clobber: clean
  47.     Delete $(EXE) $(EXE020)
  48.  
  49. install : $(EXE)
  50.     strip $(EXE)
  51.     cp $(EXE) $(MAINDIR)/$(INSTDIR)
  52.  
  53. installdbg : $(EXE)
  54.     cp $(EXE) $(MAINDIR)/$(INSTDIR)
  55.