X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=obcl%2FMakefile;h=1284a735c7bbde42f370f2c73616075f217af51e;hb=6a237b91bcbc2c25f2bf8d368535430ba6a1bf26;hp=56263a4a0e1b275485edb60383ea423d149c754e;hpb=5cf61ee02354c1c9f80c11f3796afc4b948055d6;p=chaz%2Fopenbox diff --git a/obcl/Makefile b/obcl/Makefile index 56263a4a..1284a735 100644 --- a/obcl/Makefile +++ b/obcl/Makefile @@ -1,4 +1,23 @@ -all clean distclean install uninstall: - $(MAKE) -$(MAKEFLAGS) -C .. $@ +CFLAGS=-ansi -pedantic -Wall `pkg-config --cflags glib-2.0` +LIBS=`pkg-config --libs glib-2.0` -ll -.PHONY: all clean distclean install uninstall +targets = cltest + +sources = obcl.c main.c parse.c lex.c process.c +headers = obcl.h + +.PHONY: all clean + +all: $(targets) + +$(targets): $(sources:.c=.o) + $(CC) -o $@ $^ $(LIBS) + +parse.c: parse.y + $(YACC) -d -o$@ $^ + +lex.c: lex.l + $(LEX) -o$@ $^ + +clean: + $(RM) $(targets) *.o core *~ lex.c parse.c parse.h