equal
deleted
inserted
replaced
46 |
46 |
47 objs = $(addsuffix .o,$(bases)) |
47 objs = $(addsuffix .o,$(bases)) |
48 |
48 |
49 $(prereqs): $(global_prereqs) |
49 $(prereqs): $(global_prereqs) |
50 $(MAKE) -C $(EPOCROOT)/build $@ |
50 $(MAKE) -C $(EPOCROOT)/build $@ |
51 |
51 |
52 $(exe): $(objs) $(prereqs) |
52 $(objs): $(prereqs) |
|
53 |
|
54 $(exe): $(objs) |
53 $(CC) -o $@ $(objs) $(LDFLAGS) |
55 $(CC) -o $@ $(objs) $(LDFLAGS) |
54 |
56 |
55 clean: remove_fixes |
57 clean: remove_fixes |
56 rm -f $(objs) $(exe) |
58 rm -f $(objs) $(exe) |
57 |
59 |
58 fixes: $(fixbackups) |
60 fixes:: $(fixbackups) |
59 |
61 |
60 remove_fixes: |
62 remove_fixes: |
61 for file in $(fixbackups); do if [ -f $$file ]; then mv -f $$file $${file%original}; fi; done |
63 for file in $(fixbackups); do if [ -f $$file ]; then mv -f $$file $${file%\.original}; fi; done |
62 |
64 |
63 geninf.cpp.original: |
65 geninf.cpp.original: |
64 cp $(basename $@) $@ && \ |
66 cp $(basename $@) $@ && \ |
65 sed -e 's|stricmp|strcmp|g' -i $(basename $@) |
67 sed -e 's|stricmp|strcmp|g' -i $(basename $@) |
66 |
68 |