home *** CD-ROM | disk | FTP | other *** search
/ ftp.sunet.sepub/pictures / 2014.11.ftp.sunet.se-pictures.tar / ftp.sunet.se / pub / pictures / ACiD-artpacks / programs / unix / editors / gimp-plugins-unstable-0_99_23_tar.gz / gimp-plugins-unstable-0_99_23_tar / gimp-plugins-unstable-0.99.23 / user_filter / Makefile.classic < prev    next >
Makefile  |  1998-02-20  |  810b  |  37 lines

  1. CC=gcc
  2. LINK=gcc
  3. INCDIR=
  4. LIBDIR=-L/usr/X11/lib
  5. LDLIBS=-lgdk -lgtk -lglib -lgimp -lm -lfl
  6. OPTFLAGS= -m486 -O3 -fomit-frame-pointer -funroll-loops -ffast-math -Wall
  7. DEST=user_filter
  8. #DEFINES=-DYYDEBUG
  9.  
  10. OBJS=user_filter.o afslex.o afsparse.tab.o
  11. SRCS=user_filter.c afslex.l afsparse.y
  12.  
  13. CFLAGS=  $(OPTFLAGS) $(DEFINES) $(INCDIR)
  14. LFLAGS= $(LIBDIR) $(LDLIBS)
  15.  
  16. $(DEST) : $(OBJS)
  17.     $(LINK) $(CFLAGS) -o $@ $(OBJS) $(LFLAGS)
  18.  
  19. tar: $(DEST) $(SRCS) README INSTALL
  20.     tar -czvf user_filter-1.0.0.tgz README INSTALL $(DEST) $(SRCS)
  21.  
  22. install: $(DEST)
  23.     cp $(DEST) $(HOME)/.gimp/plug-ins
  24.  
  25. .c.o:
  26.     $(CC) $(CFLAGS) -c $<
  27.  
  28. afsparse.tab.c: afsparse.y
  29.     bison --defines --verbose afsparse.y
  30.  
  31. afslex.c: afslex.l afsparse.tab.c
  32.     flex -Cem -oafslex.c afslex.l
  33.  
  34. user_filter.o: user_filter.c
  35. afsparse.tab.o: afsparse.tab.c
  36. afslex.o: afslex.c
  37.