Menu

Example of Makefile

Makefile (1)
WHR
NATIVETOOLSDIR := ../nativetools/       # Path to NativeTools; The ending slash cannot be omitted!
include $(NATIVETOOLSDIR)rules.mk

# Definition of herein is optional
CC = <...>              #(Optional)
LD = <...>              #(Optional)
<...> = <...>           #(Optional)


first:  myapp.exe [<...>]



# If your program are linking with a single translation unit, omit the following

OBJS = \
        $(NATIVETOOLSDIR)crtn.o \
    obj1.o \
    obj2.o \
    obj3.o \
        <...>

myapp.exe:  $(OBJS)
        $(LD) $(LDFLAGS) $(OBJS) -o $@ $(LIBS)

[<...>]