# # fte-cygwin-xf86.mak # # Copyright (c) 2008, eFTE SF Group (see AUTHORS file) # # You may distribute under the terms of either the GNU General Public # License or the Artistic License, as specified in the README file. # # versions of FTE to build # Versions: # xefte - using XLib (the most stable) TARGETS = xefte PRIMARY = xefte # Comment or uncoment this two flags below if # you want to use: # Keyboard remaping by XFTE #REMAPFLAG = -DUSE_HARD_REMAP # Drawing fonts with locale support XMBFLAG = -DUSE_XMB # System X11R6 is compiled with X_LOCALE #SYSTEM_X_LOCALE = -DX_LOCALE I18NOPTIONS = $(XMBFLAG) $(REMAPFLAG) $(SYSTEM_X_LOCALE) # Optionally, you can define: # -DDEFAULT_INTERNAL_CONFIG to use internal config by default # -DUSE_XTINIT to use XtInitialize on init # -DFTE_NO_LOGGING to completely disable trace logging APPOPTIONS = -DDEFAULT_INTERNAL_CONFIG #gcc/g++ COPTIONS = -Wall -Wpointer-arith -Wconversion -Wwrite-strings \ -Wmissing-prototypes -Wmissing-declarations -Winline #CC = g++ #LD = g++ # try this for smaller/faster code and less dependencies CC = g++ -fno-rtti -fno-exceptions LD = g++ -fno-rtti -fno-exceptions ####################################################################### # Linux UOS = -DLINUX XINCDIR = -I/usr/X11R6/include XLIBDIR = -L/usr/X11R6/lib -lstdc++ SOCKETLIB = -lwsock32 -liberty ####################################################################### LIBDIR = INCDIR = #OPTIMIZE = -g # -O -g OPTIMIZE = -O2 #OPTIMIZE = -O2 -s CCFLAGS = $(OPTIMIZE) $(I18NOPTIONS) $(APPOPTIONS) $(COPTIONS) -DUNIX $(UOS) \ $(INCDIR) $(XINCDIR) LDFLAGS = $(OPTIMIZE) $(LIBDIR) $(XLIBDIR) OEXT = o .SUFFIXES: .cpp .o include objs.inc # Need -lXt below if USE_XTINIT is defined XLIBS = -lX11 $(SOCKETLIB) .cpp.o: $(CC) $(CCFLAGS) -c $< .c.o: $(CC) $(CCFLAGS) -c $< all: cefte $(TARGETS) #rm -f fte ; ln -s $(PRIMARY) fte cefte: cfte.o s_files.o $(LD) $(LDFLAGS) cfte.o s_files.o -o cefte c_config.o: defcfg.h defcfg.h: defcfg.cnf perl mkdefcfg.pl defcfg.h #DEFAULT_FTE_CONFIG = simple.fte DEFAULT_FTE_CONFIG = defcfg.fte #DEFAULT_FTE_CONFIG = defcfg2.fte #DEFAULT_FTE_CONFIG = ../config/main.fte defcfg.cnf: $(DEFAULT_FTE_CONFIG) cefte ./cefte $(DEFAULT_FTE_CONFIG) defcfg.cnf xefte: $(OBJS) $(XOBJS) $(LD) $(LDFLAGS) $(OBJS) $(XOBJS) $(XLIBS) -o xefte compkeys: compkeys.o $(LD) $(LDFLAGS) compkeys.o -o compkeys clean: rm -f core *.o $(TARGETS) defcfg.h defcfg.cnf cefte efte vefte compkeys