Add gcc/lib/app versions to trace log
[forms.git] / src / Makefile
blobc90543c21dcc36da6c9c9a243782837b3c76b984
2 # Forms makefile
5 CONF_LIBNAME=f
6 CONF_VERSION=0.0
8 LIBDYN = lib$(CONF_LIBNAME).so.$(CONF_VERSION)
9 LIBLDD = lib$(CONF_LIBNAME).so
10 LIBSTA = lib$(CONF_LIBNAME).a
11 ALLIBS += ${LIBDYN}
12 ALLIBS += ${LIBSTA}
14 ###
16 include ../Rules.Make
18 INCLUDES = -I../F -I$(FLTK_INCLUDES) -I$(COMMONCPP_INCLUDES)
19 CFLAGS = $(PROFILE) $(OPTIMIZE) -Werror -Wall -D_REENTRANT -D_GNU_SOURCE -D_THREAD_SAFE $(INCLUDES) $(DEBUG)
20 LDFLAGS = $(LDFLAG) $(PROFILE)
21 OBJS = F_App.o F_Log.o F_UI.o F_Batch_UI.o F_Linux_Console_UI.o F_FLTK_UI.o \
22 F_Input_Device.o F_Gpm.o F_Linux_Input.o F_Linux_Keyboard.o \
23 F_Text_Display.o F_Linux_Console_Display.o F_Widget.o F_Window.o \
24 F_Text.o F_Button.o F_Browser.o F_Text_Output.o F_Input.o \
25 F_Scrollbar.o F_Menu_Button.o F_Menu.o
27 .C.o:
28 $(CXX) -fPIC -MD $(CFLAGS) -c $< -o $@
30 all: ${ALLIBS}
31 @ln -sf $(LIBDYN) $(LIBLDD)
32 @mkdir -p ../libs
33 @cp -af ${ALLIBS} $(LIBLDD) ../libs
35 dist: clean dep all
37 ${ALLIBS}: $(OBJS)
38 $(AR) rcs $(LIBSTA) $(OBJS)
39 ranlib $(LIBSTA)
40 $(CXX) $(DEBUG) -shared -Wl,-soname,$(LIBLDD) -o $(LIBDYN) $(OBJS)
42 clean:
43 @rm -f *.d *.o *.a *.so* core *.out *~ demo DEAD* \
44 ../libs/$(LIBDYN) ../libs/$(LIBLDD) ../libs/$(LIBSTA)
46 -include $(wildcard *.d)
48 ###