test/Makefile.in
author Ryan C. Gordon <icculus@icculus.org>
Tue, 27 May 2014 01:27:42 -0400
changeset 8931 44d8a2f4b431
parent 8645 d69fdbefeecf
child 8935 9d2f0236322b
permissions -rw-r--r--
First shot at SDL_SetWindowDragAreas().

Only Cocoa implemented right now.
slouken@1380
     1
# Makefile to build the SDL tests
slouken@1380
     2
slouken@1380
     3
srcdir  = @srcdir@
slouken@1380
     4
slouken@1380
     5
CC      = @CC@
slouken@1380
     6
EXE	= @EXE@
urkle@7807
     7
CFLAGS  = @CFLAGS@ -g
slouken@1380
     8
LIBS	= @LIBS@
slouken@1380
     9
slouken@5232
    10
TARGETS = \
slouken@5232
    11
	checkkeys$(EXE) \
slouken@5232
    12
	loopwave$(EXE) \
icculus@6412
    13
	testaudioinfo$(EXE) \
slouken@6769
    14
	testautomation$(EXE) \
icculus@8931
    15
	testdragareas$(EXE) \
slouken@5232
    16
	testdraw2$(EXE) \
slouken@7529
    17
	testdrawchessboard$(EXE) \
urkle@7807
    18
	testdropfile$(EXE) \
slouken@5232
    19
	testerror$(EXE) \
slouken@5232
    20
	testfile$(EXE) \
slouken@6690
    21
	testgamecontroller$(EXE) \
slouken@5232
    22
	testgesture$(EXE) \
slouken@5232
    23
	testgl2$(EXE) \
slouken@5232
    24
	testgles$(EXE) \
gabomdq@8014
    25
	testgles2$(EXE) \
slouken@5232
    26
	testhaptic$(EXE) \
slouken@5508
    27
	testrumble$(EXE) \
urkle@8164
    28
	testhotplug$(EXE) \
slouken@5508
    29
	testthread$(EXE) \
slouken@5232
    30
	testiconv$(EXE) \
slouken@5232
    31
	testime$(EXE) \
slouken@5232
    32
	testintersections$(EXE) \
slouken@6311
    33
	testrelative$(EXE) \
slouken@5232
    34
	testjoystick$(EXE) \
slouken@5232
    35
	testkeys$(EXE) \
slouken@5232
    36
	testloadso$(EXE) \
slouken@5232
    37
	testlock$(EXE) \
slouken@5232
    38
	testmultiaudio$(EXE) \
slouken@6175
    39
	testnative$(EXE) \
slouken@5232
    40
	testoverlay2$(EXE) \
slouken@5232
    41
	testplatform$(EXE) \
slouken@5232
    42
	testpower$(EXE) \
icculus@7667
    43
	testfilesystem$(EXE) \
slouken@6232
    44
	testrendertarget$(EXE) \
slouken@5232
    45
	testresample$(EXE) \
slouken@5240
    46
	testscale$(EXE) \
slouken@5232
    47
	testsem$(EXE) \
slouken@5232
    48
	testshader$(EXE) \
slouken@5232
    49
	testshape$(EXE) \
slouken@5232
    50
	testsprite2$(EXE) \
slouken@5232
    51
	testspriteminimal$(EXE) \
slouken@5254
    52
	teststreaming$(EXE) \
slouken@5232
    53
	testtimer$(EXE) \
slouken@5232
    54
	testver$(EXE) \
slouken@7994
    55
	testviewport$(EXE) \
slouken@5232
    56
	testwm2$(EXE) \
slouken@5232
    57
	torturethread$(EXE) \
gabomdq@6320
    58
	testrendercopyex$(EXE) \
slouken@6614
    59
	testmessage$(EXE) \
gabomdq@8043
    60
	controllermap$(EXE) \
gabomdq@8043
    61
	
slouken@1914
    62
all: Makefile $(TARGETS)
slouken@1914
    63
slouken@1914
    64
Makefile: $(srcdir)/Makefile.in
slouken@1914
    65
	$(SHELL) config.status $@
slouken@1380
    66
slouken@1380
    67
checkkeys$(EXE): $(srcdir)/checkkeys.c
slouken@6601
    68
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
    69
slouken@1380
    70
loopwave$(EXE): $(srcdir)/loopwave.c
slouken@6601
    71
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
    72
icculus@3017
    73
testresample$(EXE): $(srcdir)/testresample.c
slouken@6601
    74
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@3017
    75
icculus@2049
    76
testaudioinfo$(EXE): $(srcdir)/testaudioinfo.c
slouken@6601
    77
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@2049
    78
slouken@6769
    79
testautomation$(EXE): $(srcdir)/testautomation.c \
slouken@7216
    80
		      $(srcdir)/testautomation_audio.c \
slouken@6769
    81
		      $(srcdir)/testautomation_clipboard.c \
slouken@7216
    82
		      $(srcdir)/testautomation_events.c \
slouken@7216
    83
		      $(srcdir)/testautomation_keyboard.c \
jorgen@6866
    84
		      $(srcdir)/testautomation_main.c \
slouken@7216
    85
		      $(srcdir)/testautomation_mouse.c \
slouken@7216
    86
		      $(srcdir)/testautomation_pixels.c \
slouken@6769
    87
		      $(srcdir)/testautomation_platform.c \
slouken@6769
    88
		      $(srcdir)/testautomation_rect.c \
slouken@6769
    89
		      $(srcdir)/testautomation_render.c \
aschiffler@6772
    90
		      $(srcdir)/testautomation_rwops.c \
slouken@7216
    91
		      $(srcdir)/testautomation_sdltest.c \
slouken@7216
    92
		      $(srcdir)/testautomation_stdlib.c \
aschiffler@6800
    93
		      $(srcdir)/testautomation_surface.c \
aschiffler@6801
    94
		      $(srcdir)/testautomation_syswm.c \
aschiffler@7134
    95
		      $(srcdir)/testautomation_timer.c \
aschiffler@8645
    96
		      $(srcdir)/testautomation_video.c \
aschiffler@8645
    97
		      $(srcdir)/testautomation_hints.c
slouken@7280
    98
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) 
slouken@6769
    99
icculus@2049
   100
testmultiaudio$(EXE): $(srcdir)/testmultiaudio.c
slouken@6601
   101
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@2049
   102
slouken@5254
   103
testatomic$(EXE): $(srcdir)/testatomic.c
slouken@6601
   104
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5254
   105
slouken@6785
   106
testintersections$(EXE): $(srcdir)/testintersections.c
slouken@6601
   107
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@2994
   108
slouken@6785
   109
testrelative$(EXE): $(srcdir)/testrelative.c
slouken@6601
   110
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@6311
   111
icculus@8931
   112
testdragareas$(EXE): $(srcdir)/testdragareas.c
icculus@8931
   113
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@8931
   114
slouken@6785
   115
testdraw2$(EXE): $(srcdir)/testdraw2.c
slouken@6601
   116
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@2914
   117
slouken@7529
   118
testdrawchessboard$(EXE): $(srcdir)/testdrawchessboard.c
slouken@7529
   119
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@7529
   120
urkle@7807
   121
testdropfile$(EXE): $(srcdir)/testdropfile.c
urkle@7807
   122
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
urkle@7807
   123
slouken@1380
   124
testerror$(EXE): $(srcdir)/testerror.c
slouken@6601
   125
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   126
slouken@1453
   127
testfile$(EXE): $(srcdir)/testfile.c
slouken@6601
   128
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1453
   129
slouken@6690
   130
testgamecontroller$(EXE): $(srcdir)/testgamecontroller.c
slouken@6690
   131
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@6690
   132
 
slouken@5254
   133
testgesture$(EXE): $(srcdir)/testgesture.c
slouken@6601
   134
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
slouken@5254
   135
 
slouken@6785
   136
testgl2$(EXE): $(srcdir)/testgl2.c
gabomdq@8062
   137
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
slouken@1914
   138
slouken@6785
   139
testgles$(EXE): $(srcdir)/testgles.c
gabomdq@7794
   140
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLESLIB@ @MATHLIB@
slouken@3087
   141
gabomdq@8014
   142
testgles2$(EXE): $(srcdir)/testgles2.c
gabomdq@8062
   143
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
gabomdq@8014
   144
slouken@5254
   145
testhaptic$(EXE): $(srcdir)/testhaptic.c
slouken@6601
   146
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5254
   147
urkle@8164
   148
testhotplug$(EXE): $(srcdir)/testhotplug.c
urkle@8164
   149
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
urkle@8164
   150
slouken@5360
   151
testrumble$(EXE): $(srcdir)/testrumble.c
slouken@6601
   152
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5360
   153
slouken@5508
   154
testthread$(EXE): $(srcdir)/testthread.c
slouken@6601
   155
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   156
slouken@1501
   157
testiconv$(EXE): $(srcdir)/testiconv.c
slouken@6601
   158
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1501
   159
slouken@6785
   160
testime$(EXE): $(srcdir)/testime.c
slouken@6601
   161
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @SDL_TTF_LIB@
slouken@5254
   162
slouken@6785
   163
testjoystick$(EXE): $(srcdir)/testjoystick.c
slouken@6601
   164
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   165
slouken@1380
   166
testkeys$(EXE): $(srcdir)/testkeys.c
slouken@6601
   167
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   168
slouken@5254
   169
testloadso$(EXE): $(srcdir)/testloadso.c
slouken@6601
   170
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5254
   171
slouken@1380
   172
testlock$(EXE): $(srcdir)/testlock.c
slouken@6601
   173
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   174
icculus@6390
   175
ifeq (@ISMACOSX@,true)
slouken@6175
   176
testnative$(EXE): $(srcdir)/testnative.c \
slouken@7495
   177
			$(srcdir)/testnativecocoa.m \
slouken@7495
   178
			$(srcdir)/testnativex11.c
slouken@7495
   179
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) -framework Cocoa @XLIB@
icculus@6390
   180
endif
icculus@6390
   181
icculus@6390
   182
ifeq (@ISWINDOWS@,true)
icculus@6390
   183
testnative$(EXE): $(srcdir)/testnative.c \
icculus@6390
   184
			$(srcdir)/testnativew32.c
slouken@6601
   185
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@6390
   186
endif
icculus@6390
   187
icculus@6390
   188
ifeq (@ISUNIX@,true)
icculus@6390
   189
testnative$(EXE): $(srcdir)/testnative.c \
icculus@6390
   190
			$(srcdir)/testnativex11.c
slouken@7495
   191
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @XLIB@
icculus@6390
   192
endif
slouken@6175
   193
slouken@1380
   194
testoverlay2$(EXE): $(srcdir)/testoverlay2.c
slouken@6601
   195
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   196
slouken@1421
   197
testplatform$(EXE): $(srcdir)/testplatform.c
slouken@6601
   198
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1421
   199
slouken@5254
   200
testpower$(EXE): $(srcdir)/testpower.c
slouken@6601
   201
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5254
   202
icculus@7667
   203
testfilesystem$(EXE): $(srcdir)/testfilesystem.c
icculus@7667
   204
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@7667
   205
slouken@6785
   206
testrendertarget$(EXE): $(srcdir)/testrendertarget.c
slouken@6601
   207
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@6232
   208
slouken@6785
   209
testscale$(EXE): $(srcdir)/testscale.c
slouken@6601
   210
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@5240
   211
slouken@1380
   212
testsem$(EXE): $(srcdir)/testsem.c
slouken@6601
   213
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   214
slouken@5232
   215
testshader$(EXE): $(srcdir)/testshader.c
slouken@6601
   216
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
slouken@5232
   217
eligottlieb@4799
   218
testshape$(EXE): $(srcdir)/testshape.c
slouken@6601
   219
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
eligottlieb@4799
   220
slouken@6785
   221
testsprite2$(EXE): $(srcdir)/testsprite2.c
slouken@6785
   222
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1895
   223
slouken@5254
   224
testspriteminimal$(EXE): $(srcdir)/testspriteminimal.c
slouken@6601
   225
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
slouken@5254
   226
slouken@5254
   227
teststreaming$(EXE): $(srcdir)/teststreaming.c
slouken@6601
   228
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
slouken@5254
   229
slouken@1380
   230
testtimer$(EXE): $(srcdir)/testtimer.c
slouken@6601
   231
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   232
slouken@1380
   233
testver$(EXE): $(srcdir)/testver.c
slouken@6601
   234
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   235
slouken@7994
   236
testviewport$(EXE): $(srcdir)/testviewport.c
slouken@7994
   237
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@7994
   238
slouken@6785
   239
testwm2$(EXE): $(srcdir)/testwm2.c
slouken@6601
   240
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1895
   241
slouken@1380
   242
torturethread$(EXE): $(srcdir)/torturethread.c
slouken@6601
   243
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@1380
   244
slouken@6785
   245
testrendercopyex$(EXE): $(srcdir)/testrendercopyex.c
slouken@6601
   246
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
slouken@6614
   247
slouken@6614
   248
testmessage$(EXE): $(srcdir)/testmessage.c
slouken@6614
   249
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
slouken@6614
   250
gabomdq@8043
   251
controllermap$(EXE): $(srcdir)/controllermap.c
gabomdq@8043
   252
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
gabomdq@8043
   253
gabomdq@8043
   254
slouken@1380
   255
clean:
slouken@1380
   256
	rm -f $(TARGETS)
slouken@1380
   257
slouken@1380
   258
distclean: clean
slouken@1380
   259
	rm -f Makefile
slouken@1380
   260
	rm -f config.status config.cache config.log
slouken@1380
   261
	rm -rf $(srcdir)/autom4te*