############################################################################## # Microwindows template Makefile # Copyright (c) 2000 Martin Jolicoeur, Greg Haerr ############################################################################## ifndef TOP TOP = ../.. CONFIG = $(TOP)/config endif include $(CONFIG) ######################## Additional Flags section ############################ # Directories list for header files INCLUDEDIRS += # Defines for preprocessor DEFINES += # Compilation flags for C files OTHER than include directories CFLAGS += # Preprocessor flags OTHER than defines CPPFLAGS += # Linking flags LDFLAGS += ############################# targets section ################################ ifeq ($(NANOX), Y) # If you want to create a library with the objects files, define the name here LIBNAME = # List of objects to compile OBJS = nxscribble.o scribwidget.o\ hre_api.o li_recognizer.o bitvector.o matrix.o sc.o util.o ifeq ($(ARCH), ECOS) DEFINES += -DREC_DEFAULT_USER_DIR=\"/bin\" TARGET = $(TOP)/bin/nxscribble.o else TARGET = $(TOP)/bin/nxscribble endif ifeq ($(NDSDRIVER), Y) DEFINES += -Dwchar_t=char -D_WCHAR_T_ endif all: default $(TARGET) $(CP) letters.cl digits.cl punc.cl $(TOP)/bin endif ######################### Makefile.rules section ############################# include $(TOP)/Makefile.rules ######################## Tools targets section ############################### ifeq ($(SHAREDLIBS), Y) $(TOP)/bin/nxscribble: $(OBJS) $(NANOXCLIENTLIBS) $(TOP)/config $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@ $(CCNANOXCLIENTLIBS) -lm $(LDLIBS) else ifeq ($(ARCH), ECOS) $(TOP)/bin/nxscribble.o: $(OBJS) $(TOP)/config $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -Wl,-r -Wl,--defsym -Wl,nxscribble_main=main -o XX.o $(NM) XX.o | grep -v _main | grep ' T' | awk -f $(TOP)/ecos/retain.awk | xargs $(OBJCOPY) XX.o $@ rm -f XX.o else $(TOP)/bin/nxscribble: $(OBJS) $(NANOXCLIENTLIBS) $(TOP)/config $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@ $(NANOXCLIENTLIBS) -lm $(LDLIBS) endif endif