Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions mixer/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ TARG=sdl/mixer
GOFILES:=constants.go
CGOFILES:=mixer.go chunks.go

CGO_CFLAGS:=`sdl-config --cflags`
CGO_LDFLAGS:=`sdl-config --libs`

ifeq ($(GOOS),freebsd)
CGO_CFLAGS:=-I/usr/local/include
CGO_LDFLAGS:=-lSDL_mixer -L/usr/local/lib
Expand Down
1 change: 0 additions & 1 deletion mixer/chunks.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ functions have been changed to be in a more object-oriented style
*/
package mixer

// #cgo pkg-config: SDL_mixer
// #include "SDL_mixer.h"
import "C"
import "unsafe"
Expand Down
3 changes: 3 additions & 0 deletions ttf/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ TARG=sdl/ttf
GOFILES:=constants.go
CGOFILES:=ttf.go

CGO_CFLAGS:=`sdl-config --cflags`
CGO_LDFLAGS:=`sdl-config --libs`

ifeq ($(GOOS),freebsd)
CGO_CFLAGS:=-I/usr/local/include
CGO_LDFLAGS:=-lSDL_ttf -L/usr/local/lib
Expand Down
1 change: 0 additions & 1 deletion ttf/ttf.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ that work with loaded fonts are changed to have a more object-oriented feel.
*/
package ttf

// #cgo pkg-config: SDL_ttf
// #cgo LDFLAGS: -lSDL_ttf
// #include "SDL_ttf.h"
import "C"
Expand Down