Codebase list libmawk / 70499808-c2b9-4be2-ae11-0ab4b3a1a115/main src / example_apps / 70_c_func / Makefile
70499808-c2b9-4be2-ae11-0ab4b3a1a115/main

Tree @70499808-c2b9-4be2-ae11-0ab4b3a1a115/main (Download .tar.gz)

Makefile @70499808-c2b9-4be2-ae11-0ab4b3a1a115/mainraw · history · blame

ROOT=../..

all: app

include $(ROOT)/libmawk/Makefile.conf
include ../Makefile.common

OBJS = app.o
CFLAGS = -I$(ROOT)

app: $(OBJS) $(ROOT)/libmawk/libmawk.a
	$(CC) $(LDFLAGS) $(OBJS) $(ROOT)/libmawk/libmawk.a -o $@ $(MATHLIB)

app.o: app.c

run: app
	./app -f test.awk

clean:
	rm -f $(OBJS) app

distclean: clean