include $(GOROOT)/src/Make.$(GOARCH)

TARG=allegro

# Can have plain GOFILES too, but this example doesn't.

CGOFILES=\
	allegro.go

CGO_LDFLAGS=-lallegro-4.9.15 -lallegro_image-4.9.15

# To add flags necessary for locating the library or its include files,
# set CGO_CFLAGS or CGO_LDFLAGS.  For example, to use an
# alternate installation of the library:
#	CGO_CFLAGS=-I/home/rsc/gmp32/include
#	CGO_LDFLAGS+=-L/home/rsc/gmp32/lib
# Note the += on the second line.

CLEANFILES+=smiley

include $(GOROOT)/src/Make.pkg

# Simple test programs

smiley: install smiley.go
	$(GC) smiley.go
	$(LD) -o $@ smiley.$O

