1# Makefile to build the SDL tests 2 3srcdir = @srcdir@ 4 5CC = @CC@ 6EXE = @EXE@ 7CFLAGS = @CFLAGS@ 8LIBS = @LIBS@ 9 10TARGETS = checkkeys$(EXE) graywin$(EXE) loopwave$(EXE) testalpha$(EXE) testbitmap$(EXE) testblitspeed$(EXE) testcdrom$(EXE) testcursor$(EXE) testdyngl$(EXE) testerror$(EXE) testfile$(EXE) testgamma$(EXE) testgl$(EXE) testhread$(EXE) testiconv$(EXE) testjoystick$(EXE) testkeys$(EXE) testlock$(EXE) testoverlay2$(EXE) testoverlay$(EXE) testpalette$(EXE) testplatform$(EXE) testsem$(EXE) testsprite$(EXE) testtimer$(EXE) testver$(EXE) testvidinfo$(EXE) testwin$(EXE) testwm$(EXE) threadwin$(EXE) torturethread$(EXE) testloadso$(EXE) 11 12all: $(TARGETS) 13 14checkkeys$(EXE): $(srcdir)/checkkeys.c 15 $(CC) -o $@ $? $(CFLAGS) $(LIBS) 16 17graywin$(EXE): $(srcdir)/graywin.c 18 $(CC) -o $@ $? $(CFLAGS) $(LIBS) 19 20loopwave$(EXE): $(srcdir)/loopwave.c 21 $(CC) -o $@ $? $(CFLAGS) $(LIBS) 22 23testalpha$(EXE): $(srcdir)/testalpha.c 24 $(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@ 25 26testbitmap$(EXE): $(srcdir)/testbitmap.c 27 $(CC) -o $@ $? $(CFLAGS) $(LIBS) 28 29testblitspeed$(EXE): $(srcdir)/testblitspeed.c 30 $(CC) -o $@ $? $(CFLAGS) $(LIBS) 31 32testcdrom$(EXE): $(srcdir)/testcdrom.c 33 $(CC) -o $@ $? $(CFLAGS) $(LIBS) 34 35testcursor$(EXE): $(srcdir)/testcursor.c 36 $(CC) -o $@ $? $(CFLAGS) $(LIBS) 37 38testdyngl$(EXE): $(srcdir)/testdyngl.c 39 $(CC) -o $@ $? $(CFLAGS) $(LIBS) 40 41testerror$(EXE): $(srcdir)/testerror.c 42 $(CC) -o $@ $? $(CFLAGS) $(LIBS) 43 44testfile$(EXE): $(srcdir)/testfile.c 45 $(CC) -o $@ $? $(CFLAGS) $(LIBS) 46 47testgamma$(EXE): $(srcdir)/testgamma.c 48 $(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@ 49 50testgl$(EXE): $(srcdir)/testgl.c 51 $(CC) -o $@ $? $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@ 52 53testhread$(EXE): $(srcdir)/testhread.c 54 $(CC) -o $@ $? $(CFLAGS) $(LIBS) 55 56testiconv$(EXE): $(srcdir)/testiconv.c 57 $(CC) -o $@ $? $(CFLAGS) $(LIBS) 58 59testjoystick$(EXE): $(srcdir)/testjoystick.c 60 $(CC) -o $@ $? $(CFLAGS) $(LIBS) 61 62testkeys$(EXE): $(srcdir)/testkeys.c 63 $(CC) -o $@ $? $(CFLAGS) $(LIBS) 64 65testlock$(EXE): $(srcdir)/testlock.c 66 $(CC) -o $@ $? $(CFLAGS) $(LIBS) 67 68testoverlay2$(EXE): $(srcdir)/testoverlay2.c 69 $(CC) -o $@ $? $(CFLAGS) $(LIBS) 70 71testoverlay$(EXE): $(srcdir)/testoverlay.c 72 $(CC) -o $@ $? $(CFLAGS) $(LIBS) 73 74testpalette$(EXE): $(srcdir)/testpalette.c 75 $(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@ 76 77testplatform$(EXE): $(srcdir)/testplatform.c 78 $(CC) -o $@ $? $(CFLAGS) $(LIBS) 79 80testsem$(EXE): $(srcdir)/testsem.c 81 $(CC) -o $@ $? $(CFLAGS) $(LIBS) 82 83testsprite$(EXE): $(srcdir)/testsprite.c 84 $(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@ 85 86testtimer$(EXE): $(srcdir)/testtimer.c 87 $(CC) -o $@ $? $(CFLAGS) $(LIBS) 88 89testver$(EXE): $(srcdir)/testver.c 90 $(CC) -o $@ $? $(CFLAGS) $(LIBS) 91 92testvidinfo$(EXE): $(srcdir)/testvidinfo.c 93 $(CC) -o $@ $? $(CFLAGS) $(LIBS) 94 95testwin$(EXE): $(srcdir)/testwin.c 96 $(CC) -o $@ $? $(CFLAGS) $(LIBS) 97 98testwm$(EXE): $(srcdir)/testwm.c 99 $(CC) -o $@ $? $(CFLAGS) $(LIBS) 100 101threadwin$(EXE): $(srcdir)/threadwin.c 102 $(CC) -o $@ $? $(CFLAGS) $(LIBS) 103 104torturethread$(EXE): $(srcdir)/torturethread.c 105 $(CC) -o $@ $? $(CFLAGS) $(LIBS) 106 107testloadso$(EXE): $(srcdir)/testloadso.c 108 $(CC) -o $@ $? $(CFLAGS) $(LIBS) 109 110 111clean: 112 rm -f $(TARGETS) 113 114distclean: clean 115 rm -f Makefile 116 rm -f config.status config.cache config.log 117 rm -rf $(srcdir)/autom4te* 118