# Copyright (C) 2004 Jens Vehlhaber # # This is free software; you can redistribute it and/or modify it under # the terms of the GNU General Public License as published by the Free # Software Foundation; either version 2, or (at your option) any later # version. # # -Os = Size # -O1...3 = Speed CC = gcc STRIP = strip TARGET = rotation CFLAGS += -s -fstrength-reduce -Wall OBJS = rotation.o fbtools.o all: $(TARGET) $(STRIP) -R .note -R .comment $(TARGET) rotation: $(OBJS) $(CC) $(CFLAGS) -o rotation $(OBJS) rotation.o: Makefile rotation.c fbtools.h $(CC) $(CFLAGS) -c rotation.c fbtools.o: Makefile fbtools.h fbtools.c $(CC) $(CFLAGS) -c fbtools.c clean: rm -f *~ rotation *.o core