14 # this dir relative to top dir
15 thisdir = src/wx-console
23 CONSSRCS = main.c console_thread.c authenticate.c console_conf.c wxbrestorepanel.c \
24 wxbmainframe.c wxbtableparser.c
25 CONSOBJS = main.o console_thread.o authenticate.o console_conf.o wxbrestorepanel.o \
26 wxbmainframe.o wxbtableparser.o
28 @if test "@DISTNAME@" = "cygwin" then \
29 CONSSRCS = $(CONSSRCS) wx-console_private.rc; \
30 CONSOBJS = $(CONSOBJS) wx-console_private.res; \
33 # these are the objects that are changed by the .configure process
39 # TODO: wx-config should be generated by configure
40 CONS_CPPFLAGS=@CONS_CPPFLAGS@ `wx-config --cppflags`
41 CONS_LDFLAGS=@CONS_LDFLAGS@ `wx-config --libs`
49 $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) $(CONS_CPPFLAGS) $(CONS_INC) -I$(srcdir) \
50 -I$(basedir) $(DINCLUDE) $(WCFLAGS) $(CFLAGS) $<
52 #-------------------------------------------------------------------------
53 all: Makefile wx-console
54 @echo "==== Make of wx-console is good ===="
58 @$(RMF) $(OBJ) wx-console
62 wx-console: $(CONSOBJ) ../lib/libbac.a
63 $(CXX) $(LINKOBJ) -o wx-console $(LIBS) $(WLDFLAGS) $(CONS_LDFLAGS) -lbac
65 wx-console_private.res: wx-console_private.rc
66 windres.exe -i wx-console_private.rc -I rc -o wx-console_private.res -O coff