non/FL/makefile.inc

26 lines
553 B
PHP
Raw Normal View History

2008-05-16 22:52:10 +02:00
# -*- mode: makefile; -*-
2008-05-01 10:05:10 +02:00
2008-05-27 23:27:19 +02:00
# always regenerate source list when running under git
FOO := $(shell [ -f .git ] && [ -x `which git` ] && rm -f FL/.sources )
FL/.sources:
@ echo "FL_SRCS=\\" > FL/.sources
@ git ls-files 'FL/*.C' | tr '\n' ' ' >> FL/.sources
@ git ls-files 'FL/*.fl' | tr '\n' ' ' >> FL/.sources
2008-05-01 10:05:10 +02:00
2008-05-27 23:27:19 +02:00
-include FL/.sources
2008-05-01 10:05:10 +02:00
FL_SRCS:=$(FL_SRCS:.fl=.C)
FL_OBJS:=$(FL_SRCS:.C=.o)
2008-05-01 10:05:10 +02:00
all: FL/libfl_widgets.a
2008-05-01 10:05:10 +02:00
FL/libfl_widgets.a: $(FL_OBJS)
2008-05-16 22:52:10 +02:00
@ ar rcs $@ $(FL_OBJS)
2008-05-01 10:05:10 +02:00
.PHONEY: FL
FL: FL/libfl_widgets.a
FL_clean:
rm -f $(FL_OBJS) FL/libfl_widgets.a