OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [services/] [gfx/] [mw/] [v2_0/] [src/] [demos/] [nxkbd/] [Makefile] - Diff between revs 27 and 174

Only display areas with differences | Details | Blame | View Log

Rev 27 Rev 174
##############################################################################
##############################################################################
# Microwindows template Makefile
# Microwindows template Makefile
# Copyright (c) 2000, 2002 Martin Jolicoeur, Greg Haerr
# Copyright (c) 2000, 2002 Martin Jolicoeur, Greg Haerr
##############################################################################
##############################################################################
include $(CONFIG)
include $(CONFIG)
VPATH := $(TOP)/demos/nxkbd
VPATH := $(TOP)/demos/nxkbd
######################## Additional Flags section ############################
######################## Additional Flags section ############################
# Directories list for header files
# Directories list for header files
INCLUDEDIRS +=
INCLUDEDIRS +=
# Defines for preprocessor
# Defines for preprocessor
DEFINES +=
DEFINES +=
# Compilation flags for C files OTHER than include directories
# Compilation flags for C files OTHER than include directories
CFLAGS +=
CFLAGS +=
# Preprocessor flags OTHER than defines
# Preprocessor flags OTHER than defines
CPPFLAGS +=
CPPFLAGS +=
# Linking flags
# Linking flags
LDFLAGS +=
LDFLAGS +=
############################# targets section ################################
############################# targets section ################################
ifeq ($(NANOWM), Y)
ifeq ($(NANOWM), Y)
# If you want to create a library with the objects files, define the name here
# If you want to create a library with the objects files, define the name here
LIBNAME =
LIBNAME =
# List of objects to compile
# List of objects to compile
OBJS = nxkbd.o srvconn.o keynorm.o keyctrl.o keyshft.o keynum.o
OBJS = nxkbd.o srvconn.o keynorm.o keyctrl.o keyshft.o keynum.o
ifeq ($(ARCH), ECOS)
ifeq ($(ARCH), ECOS)
TARGET = $(BUILD)/bin/nxkbd.o
TARGET = $(BUILD)/bin/nxkbd.o
else
else
TARGET = $(BUILD)/bin/nxkbd
TARGET = $(BUILD)/bin/nxkbd
endif
endif
all: default $(TARGET)
all: default $(TARGET)
endif
endif
######################### Makefile.rules section #############################
######################### Makefile.rules section #############################
include $(TOP)/Makefile.rules
include $(TOP)/Makefile.rules
######################## Tools targets section ###############################
######################## Tools targets section ###############################
ifeq ($(SHAREDLIBS), Y)
ifeq ($(SHAREDLIBS), Y)
$(BUILD)/bin/nxkbd: $(OBJS) $(NANOXCLIENTLIBS) $(BUILd)/config
$(BUILD)/bin/nxkbd: $(OBJS) $(NANOXCLIENTLIBS) $(BUILd)/config
        $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@ $(CCNANOXCLIENTLIBS)
        $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@ $(CCNANOXCLIENTLIBS)
else
else
ifeq ($(ARCH), ECOS)
ifeq ($(ARCH), ECOS)
$(BUILD)/bin/nxkbd.o: $(OBJS) $(BUILD)/config
$(BUILD)/bin/nxkbd.o: $(OBJS) $(BUILD)/config
        $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -Wl,-r -Wl,--defsym -Wl,nxkbd_main=main -o XX.o
        $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -Wl,-r -Wl,--defsym -Wl,nxkbd_main=main -o XX.o
        $(NM) XX.o | grep -v _main | grep ' T' | awk -f $(TOP)/ecos/retain.awk | xargs $(OBJCOPY) XX.o $@
        $(NM) XX.o | grep -v _main | grep ' T' | awk -f $(TOP)/ecos/retain.awk | xargs $(OBJCOPY) XX.o $@
        rm -f XX.o
        rm -f XX.o
else
else
$(BUILD)/bin/nxkbd: $(OBJS) $(NANOXCLIENTLIBS) $(BUILD)/config
$(BUILD)/bin/nxkbd: $(OBJS) $(NANOXCLIENTLIBS) $(BUILD)/config
        $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@ $(NANOXCLIENTLIBS)
        $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@ $(NANOXCLIENTLIBS)
endif
endif
endif
endif
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.