-
Notifications
You must be signed in to change notification settings - Fork 422
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tidied up Makefile comments, added recording makefile
- Loading branch information
1 parent
40f0aa3
commit e23c57b
Showing
3 changed files
with
44 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Modified from the sharedLibraryInterface's makefile. | ||
# Video recording requires SDL. If you do not have SDL installed, you will not be able to | ||
# compile this example. | ||
# | ||
# > make recordingAgent | ||
|
||
USE_SDL := 1 | ||
|
||
# This will likely need to be changed to suit your installation. | ||
ALE := ../.. | ||
|
||
FLAGS := -I$(ALE)/src -I$(ALE)/src/controllers -I$(ALE)/src/os_dependent -I$(ALE)/src/environment -I$(ALE)/src/external -L$(ALE) | ||
CXX := g++ | ||
FILE := videoRecordingExample | ||
LDFLAGS := -lale -lz | ||
|
||
UNAME_S := $(shell uname -s) | ||
ifeq ($(UNAME_S),Linux) | ||
FLAGS += -Wl,-rpath=$(ALE) | ||
endif | ||
ifeq ($(UNAME_S),Darwin) | ||
FLAGS += -framework Cocoa | ||
endif | ||
|
||
ifeq ($(strip $(USE_SDL)), 1) | ||
DEFINES += -D__USE_SDL -DSOUND_SUPPORT | ||
FLAGS += $(shell sdl-config --cflags) | ||
LDFLAGS += $(shell sdl-config --libs) | ||
endif | ||
|
||
all: videoRecordingExample | ||
|
||
videoRecordingExample: | ||
$(CXX) $(DEFINES) $(FLAGS) $(FILE).cpp $(LDFLAGS) -o $(FILE) | ||
|
||
clean: | ||
rm -rf videoRecordingExample *.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters