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

Subversion Repositories or1k

[/] [or1k/] [tags/] [MW_0_8_9PRE7/] [mw/] [src/] [nanox/] [Makefile] - Blame information for rev 673

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
ifndef TOP
7
TOP = ..
8
CONFIG = $(TOP)/config
9
endif
10
 
11
include $(CONFIG)
12
 
13
######################## Additional Flags section ############################
14
 
15
# Directories list for header files
16
INCLUDEDIRS +=
17
 
18
# Defines for preprocessor
19
ifeq ($(LINK_APP_INTO_SERVER), Y)
20
DEFINES += -DNONETWORK=1
21
endif
22
 
23
# Compilation flags for C files OTHER than include directories
24
CFLAGS +=
25
# Preprocessor flags OTHER than defines
26
CPPFLAGS +=
27
# Linking flags
28
LDFLAGS +=
29
 
30
############################# targets section ################################
31
 
32
ifeq ($(NANOX), Y)
33
 
34
# If you want to create a library with the objects files, define the name here
35
LIBNAME = libnano-X.a
36
LIBNAMESO = libnano-X.so
37
 
38
# Nano-X server files
39
NANOXFILES = srvmain.o srvfunc.o srvutil.o srvevent.o srvclip.o
40
NETFILES = srvnet.o
41
UTILFILES = nxdraw.o nxutil.o
42
 
43
ifeq ($(LINK_APP_INTO_SERVER), Y)
44
NANOXFILES += $(UTILFILES)
45
OBJS = $(NANOXFILES)
46
else
47
NANOXFILES += $(NETFILES)
48
OBJS = client.o clientfb.o nxproto.o error.o $(UTILFILES)
49
ifeq ($(ARCH), ECOS)
50
TARGET = $(TOP)/bin/nano-X.o
51
else
52
TARGET = $(TOP)/bin/nano-X
53
endif
54
all: default $(TARGET)
55
endif
56
 
57
endif
58
 
59
######################### Makefile.rules section #############################
60
 
61
include $(TOP)/Makefile.rules
62
 
63
######################## Tools targets section ###############################
64
 
65
# Server binary ...
66
ifeq ($(SHAREDLIBS), Y)
67
$(TOP)/bin/nano-X: $(NANOXFILES) $(NANOXSERVERLIBS) $(TOP)/config
68
        $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(NANOXFILES) $(CCNANOXSERVERLIBS)
69
else
70
$(TOP)/bin/nano-X.o: $(OBJS) $(NANOXFILES) $(NANOXSERVERLIBS) $(TOP)/config
71
#       $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(NANOXFILES) $(NANOXSERVERLIBS) -Wl,-r -Wl,--retain-symbols-file -Wl,nanox.syms -Wl,--defsym -Wl,nanox_main=main -o XX.o
72
        $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(NANOXFILES) $(NANOXSERVERLIBS) -Wl,-r -Wl,--defsym -Wl,nanox_main=main -o XX.o
73
        $(NM) XX.o | grep -v _main | grep -v Gr | grep -v nx | grep ' T' | awk -f $(TOP)/ecos/retain.awk | xargs $(OBJCOPY) XX.o $@
74
#       rm -f XX.o
75
 
76
$(TOP)/bin/nano-X: $(NANOXFILES) $(NANOXSERVERLIBS) $(TOP)/config
77
        $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(NANOXFILES) $(NANOXSERVERLIBS) $(LDFLAGS)
78
endif

powered by: WebSVN 2.1.0

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