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] - Blame information for rev 27

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 unneback
##############################################################################
2
# Microwindows template Makefile
3
# Copyright (c) 2000, 2002 Martin Jolicoeur, Greg Haerr
4
##############################################################################
5
 
6
include $(CONFIG)
7
 
8
VPATH := $(TOP)/demos/nxkbd
9
 
10
######################## Additional Flags section ############################
11
 
12
# Directories list for header files
13
INCLUDEDIRS +=
14
# Defines for preprocessor
15
DEFINES +=
16
 
17
# Compilation flags for C files OTHER than include directories
18
CFLAGS +=
19
# Preprocessor flags OTHER than defines
20
CPPFLAGS +=
21
# Linking flags
22
LDFLAGS +=
23
 
24
############################# targets section ################################
25
 
26
ifeq ($(NANOWM), Y)
27
 
28
# If you want to create a library with the objects files, define the name here
29
LIBNAME =
30
 
31
# List of objects to compile
32
OBJS = nxkbd.o srvconn.o keynorm.o keyctrl.o keyshft.o keynum.o
33
 
34
ifeq ($(ARCH), ECOS)
35
TARGET = $(BUILD)/bin/nxkbd.o
36
else
37
TARGET = $(BUILD)/bin/nxkbd
38
endif
39
 
40
all: default $(TARGET)
41
 
42
endif
43
 
44
######################### Makefile.rules section #############################
45
 
46
include $(TOP)/Makefile.rules
47
 
48
######################## Tools targets section ###############################
49
 
50
ifeq ($(SHAREDLIBS), Y)
51
$(BUILD)/bin/nxkbd: $(OBJS) $(NANOXCLIENTLIBS) $(BUILd)/config
52
        $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@ $(CCNANOXCLIENTLIBS)
53
else
54
ifeq ($(ARCH), ECOS)
55
$(BUILD)/bin/nxkbd.o: $(OBJS) $(BUILD)/config
56
        $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -Wl,-r -Wl,--defsym -Wl,nxkbd_main=main -o XX.o
57
        $(NM) XX.o | grep -v _main | grep ' T' | awk -f $(TOP)/ecos/retain.awk | xargs $(OBJCOPY) XX.o $@
58
        rm -f XX.o
59
else
60
$(BUILD)/bin/nxkbd: $(OBJS) $(NANOXCLIENTLIBS) $(BUILD)/config
61
        $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@ $(NANOXCLIENTLIBS)
62
endif
63
endif

powered by: WebSVN 2.1.0

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