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

Subversion Repositories or1k

[/] [or1k/] [tags/] [MW_0_8_9PRE7/] [mw/] [src/] [demos/] [nxkbd/] [Makefile] - Blame information for rev 674

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

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

powered by: WebSVN 2.1.0

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