home *** CD-ROM | disk | FTP | other *** search
Makefile | 1995-02-21 | 872 b | 48 lines |
-
- CC = gcc
- OPTIMIZE = -fomit-frame-pointer -O2 -s
- CFLAGS = $(DEFINES) $(OPTIMIZE)
- LFLAGS = -N
-
- PROGS = fun testgl speedtest mousetest vgatest scrolltest testlinear \
- keytest testaccel accel
- PROGS_O = fun.o testgl.o speedtest.o mousetest.o vgatest.o scrolltest.o \
- testlinear.o keytest.o testaccel.o accel.o
- LIBS = -lvgagl -lvga
-
- all: progs
-
- progs : $(PROGS)
-
- objs: $(PROGS_O)
-
- .c.o:
- $(CC) $(CFLAGS) -c -o $*.o $<
-
- .c.s:
- $(CC) $(CFLAGS) -S -o $*.s $<
-
- .o:
- $(CC) $(CFLAGS) $(LFLAGS) -o $* $*.o $(LIBS)
- chmod a+rs,go-w $*
-
- testaccel: testaccel.o
- $(CC) $(CFLAGS) $(LFLAGS) -o testaccel testaccel.o $(LIBS) -lm
- chmod a+rs,go-w testaccel
-
- clean : cleanbin
- rm -f *.o *~
-
- cleanbin :
- rm -f $(PROGS)
-
- dep :
- rm -f .depend
- make .depend
-
- .depend:
- echo '# Program dependencies' >.depend
- gcc -MM $(patsubst %.o,%.c,$(PROGS_O)) >>.depend
-
- include .depend
-