Makefile 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #
  2. # $Id: Makefile,v 1.12 2004/10/19 07:51:52 vojtech Exp $
  3. #
  4. # Makefile for Linux input utilities
  5. #
  6. # (c) 1998-2000 Vojtech Pavlik
  7. #
  8. # Sponsored by SuSE
  9. #
  10. # This program is free software; you can redistribute it and/or modify
  11. # it under the terms of the GNU General Public License as published by
  12. # the Free Software Foundation; either version 2 of the License, or
  13. # (at your option) any later version.
  14. #
  15. # This program is distributed in the hope that it will be useful,
  16. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. # GNU General Public License for more details.
  19. #
  20. # You should have received a copy of the GNU General Public License
  21. # along with this program; if not, write to the Free Software
  22. # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  23. #
  24. # Should you need to contact me, the author, you can do so either by
  25. # e-mail - mail your message to <vojtech@ucw.cz>, or by paper mail:
  26. # Vojtech Pavlik, Simunkova 1594, Prague 8, 182 00 Czech Republic
  27. #
  28. #
  29. # Edit the options below to suit your needs
  30. #
  31. CC = gcc
  32. CFLAGS = -g -O2 -Wall -I../linux/include
  33. PROGRAMS = evtest inputattach jstest jscal fftest ffmvforce ffset \
  34. ffcfstress # acceltest
  35. compile: $(PROGRAMS)
  36. clean:
  37. $(RM) *.o *.swp $(PROGRAMS) *.orig *.rej map *~
  38. ffcfstress: ffcfstress.c
  39. $(CC) -O2 -fno-implement-inlines -funsigned-char \
  40. -lm ffcfstress.c -o ffcfstress
  41. ffmvforce.o: ffmvforce.c
  42. $(CC) -c $(CFLAGS) $(CPPFLAGS) $^ -o $@ `sdl-config --cflags`
  43. ffmvforce: ffmvforce.o
  44. $(CC) $^ -o $@ $(LDFLAGS) -g -lm `sdl-config --libs`
  45. jscal: jscal.o
  46. $(CC) $(CFLAGS) $(CPPFLAGS) -lm $^ -o $@
  47. gencodes: gencodes.c scancodes.h
  48. $(CC) $(CFLAGS) $(CPPFLAGS) gencodes.c -o gencodes
  49. acceltest: acceltest.c
  50. $(CC) $(CFLAGS) $(CPPFLAGS) -lm $^ -o $@