URL
https://opencores.org/ocsvn/or1k_old/or1k_old/trunk
Subversion Repositories or1k_old
[/] [or1k_old/] [trunk/] [mw/] [src/] [demos/] [nxscribble/] [Makefile] - Rev 1782
Compare with Previous | Blame | View Log
############################################################################### Microwindows template Makefile# Copyright (c) 2000 Martin Jolicoeur, Greg Haerr##############################################################################ifndef TOPTOP = ../..CONFIG = $(TOP)/configendifinclude $(CONFIG)######################## Additional Flags section ############################# Directories list for header filesINCLUDEDIRS +=# Defines for preprocessorDEFINES +=# Compilation flags for C files OTHER than include directoriesCFLAGS +=# Preprocessor flags OTHER than definesCPPFLAGS +=# Linking flagsLDFLAGS +=############################# targets section ################################ifeq ($(NANOX), Y)# If you want to create a library with the objects files, define the name hereLIBNAME =# List of objects to compileOBJS = nxscribble.o scribwidget.o\hre_api.o li_recognizer.o bitvector.o matrix.o sc.o util.oifeq ($(ARCH), ECOS)DEFINES += -DREC_DEFAULT_USER_DIR=\"/bin\"TARGET = $(TOP)/bin/nxscribble.oelseTARGET = $(TOP)/bin/nxscribbleendifall: default $(TARGET)$(CP) letters.cl digits.cl punc.cl $(TOP)/binendif######################### 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) -lmelseifeq ($(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.oelse$(TOP)/bin/nxscribble: $(OBJS) $(NANOXCLIENTLIBS) $(TOP)/config$(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@ $(NANOXCLIENTLIBS) -lmendifendif
