summaryrefslogtreecommitdiff
path: root/src/emc/nml_intf/Submakefile
blob: cd51eea5c89dfbbaf3b08c077ec94452de7c355f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
INCLUDES += emc/nml_intf

LIBEMCSRCS := \
    emc/nml_intf/emcglb.c \
    emc/nml_intf/emc.cc \
    emc/nml_intf/emcpose.c \
    emc/nml_intf/emcargs.cc \
    emc/nml_intf/emcops.cc \
    emc/nml_intf/canon_position.cc \
    emc/ini/emcIniFile.cc \
    emc/ini/iniaxis.cc \
    emc/ini/initool.cc \
    emc/ini/initraj.cc \
    emc/ini/inihal.cc \
    emc/nml_intf/interpl.cc
USERSRCS += $(LIBEMCSRCS)

$(call TOOBJSDEPS, $(LIBEMCSRCS)) : EXTRAFLAGS=-fPIC

TARGETS += ../lib/liblinuxcnc.a

../lib/liblinuxcnc.a: $(call TOOBJS,$(LIBEMCSRCS))
	$(ECHO) Linking $(notdir $@)
	@mkdir -p ../lib
	@rm -f $@
	@$(AR) $(ARFLAGS) $@ $^

../include/%.h: ./emc/nml_intf/%.h
	cp $^ $@
../include/%.hh: ./emc/nml_intf/%.hh
	cp $^ $@