23 lines
406 B
Makefile
Raw Normal View History

2005-04-24 08:51:33 +00:00
include $(TOP)/config.mk
2005-09-03 04:45:14 +00:00
include $(TOP)/testsuite/check.mk
2005-04-24 08:51:33 +00:00
INCLUDES= -I$(TOP)
# compile with GHC to save us setting all the necessary include and
# lib flags. use ghc -v to find out what these are if you wish to go
# via gcc.
BIN=./a.out
SRC=main.c
BINDIR= "."
REALBIN= $(BIN)
all: $(BIN)
$(BIN): $(SRC)
$(GHC) -package plugins $(INCLUDES) $(PKGFLAGS) $(SRC)
2005-04-24 08:51:33 +00:00
clean:
rm -rf *.hi *.o *~ $(BIN)