2006-01-12 12:42:10 +00:00
|
|
|
SRCS = awk.c
|
2006-11-18 15:36:57 +00:00
|
|
|
OBJS = $(SRCS:.c=.o)
|
2006-01-12 12:42:10 +00:00
|
|
|
|
|
|
|
CC = @CC@
|
2006-10-22 12:39:30 +00:00
|
|
|
CFLAGS = @CFLAGS@ -I@abs_top_builddir@/.. -I$(XPKIT)
|
|
|
|
LDFLAGS = @LDFLAGS@ -L@abs_top_builddir@/awk -L$(XPKIT)/xp/bas
|
2006-11-13 09:11:09 +00:00
|
|
|
LIBS = @LIBS@ -laseawk -lxpbas -lm
|
2006-01-12 12:42:10 +00:00
|
|
|
|
2006-11-19 07:55:27 +00:00
|
|
|
all: xpkit awk
|
2006-11-18 15:36:57 +00:00
|
|
|
|
|
|
|
awk: $(OBJS)
|
2006-11-19 07:28:33 +00:00
|
|
|
$(CC) -o $@ awk.o $(LDFLAGS) $(LIBS)
|
2006-01-12 12:42:10 +00:00
|
|
|
|
|
|
|
clean:
|
2006-11-18 15:36:57 +00:00
|
|
|
rm -rf *.o awk
|
2006-01-12 12:42:10 +00:00
|
|
|
|
2006-11-19 07:55:27 +00:00
|
|
|
xpkit:
|
|
|
|
@if [ "$(XPKIT)" = "" ]; then echo "ERROR: XPKIT not set. Check XPKIT first"; return 1; fi
|
|
|
|
|
2006-11-18 15:36:57 +00:00
|
|
|
.SUFFIXES: .c .o
|
|
|
|
.c.o:
|
|
|
|
$(CC) -c $(CFLAGS) $<
|