1 |
# |
2 |
# Makefile.target |
3 |
# |
4 |
# this file defines the default target and its components |
5 |
# for the current build directory; there must be a target |
6 |
# named 'user_target' (see Makefile.defaults) somewhere at |
7 |
# the head of the chain, otherwise there aren't really any |
8 |
# constraints ... |
9 |
# |
10 |
ifeq ($(CPU),I80486) |
11 |
user_target: priv_dbEmulator dbEmulator |
12 |
else |
13 |
user_target:dbEmulator |
14 |
endif |
15 |
|
16 |
# |
17 |
# Define targets for the dbEmulator |
18 |
# |
19 |
|
20 |
dbEmulator: $(OBJS) |
21 |
@ echo "linking dbEmulator for $(DST)" |
22 |
@ $(RM) $@ |
23 |
@ $(LD) -r $(OBJS) -o $@ |
24 |
|
25 |
priv_dbEmulator: $(PRIV_OBJS) |
26 |
@ echo "linking priv_dbEmulator for $(DST)" |
27 |
@ $(RM) $@ |
28 |
@ $(LD) -r $(PRIV_OBJS) -o $@ |
29 |
|
30 |
# note: by making the special version dependent on the |
31 |
# standard, we inherit the dependencies. |
32 |
priv_dbEmulator.o: dbEmulator.o |
33 |
@ $(RM) priv_dbEmulator.o |
34 |
$(CC) -DvxWorks -DV5_vxWorks -c $(CFLAGS) -DPRIV_AUDIT -o $@ $(SRC)/dbEmulator.c |
35 |
|
36 |
std.sdr : $(SHR)/epicsH/rec/default.dctsdr |
37 |
@ echo "creating linkable SDR ..." |
38 |
@ $(VX_HSP_BASE)/bin/$(VX_HOST_TYPE)/binToAsm $? > tmp.s |
39 |
@ $(GPATH)/cc$(TARG) -c tmp.s -o $@ |
40 |
@ $(RM) tmp.s |
41 |
|
42 |
# |
43 |
# END of Makefile.target |
44 |
# |
45 |
# Dependency list for .o files - automatically generated!! |
46 |
# reference ./Makefile & ../Makefile.defaults |
47 |
# |
48 |
|