Rev 3811 | Rev 4168 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3811 | Rev 3882 | ||
---|---|---|---|
Line 28... | Line 28... | ||
28 | # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
28 | # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
29 | # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
29 | # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
30 | # POSSIBILITY OF SUCH DAMAGE. |
30 | # POSSIBILITY OF SUCH DAMAGE. |
31 | 31 | ||
32 | include ../../../version |
32 | include ../../../version |
33 | -include ../../../Makefile.config |
- | |
34 | 33 | ||
35 | LIBC_PREFIX = ../../lib/libc |
34 | LIBC_PREFIX = ../../lib/libc |
36 | SOFTINT_PREFIX = ../../lib/softint |
35 | SOFTINT_PREFIX = ../../lib/softint |
- | 36 | ||
37 | include $(LIBC_PREFIX)/Makefile.toolchain |
37 | include $(LIBC_PREFIX)/Makefile.toolchain |
38 | 38 | ||
39 | CFLAGS += -I../../srv/kbd/include |
39 | CFLAGS += -I../../srv/kbd/include |
40 | 40 | ||
41 | LIBS = $(LIBC_PREFIX)/libc.a |
41 | LIBS = $(LIBC_PREFIX)/libc.a |
42 | DEFS += -DRELEASE=\"$(RELEASE)\" |
42 | DEFS += -DRELEASE=$(RELEASE) |
43 | - | ||
44 | ifdef REVISION |
- | |
45 | DEFS += "-DREVISION=\"$(TIMESTAMP)\"" |
- | |
46 | endif |
- | |
47 | - | ||
48 | ifdef TIMESTAMP |
- | |
49 | DEFS += "-DTIMESTAMP=\"$(TIMESTAMP)\"" |
- | |
50 | endif |
- | |
51 | 43 | ||
52 | PROGRAM = bdsh |
44 | PROGRAM = bdsh |
53 | 45 | ||
54 | # Any directory that cleaning targets should know about |
46 | # Any directory that cleaning targets should know about |
55 | SUBDIRS = \ |
47 | SUBDIRS = \ |
Line 110... | Line 102... | ||
110 | %.o: %.c |
102 | %.o: %.c |
111 | $(CC) $(CFLAGS) $(INC) -c $< -o $@ |
103 | $(CC) $(CFLAGS) $(INC) -c $< -o $@ |
112 | @$(CC) -M $(CFLAGS) $(INC) $*.c > $*.d |
104 | @$(CC) -M $(CFLAGS) $(INC) $*.c > $*.d |
113 | 105 | ||
114 | $(PROGRAM): $(OBJECTS) $(LIBS) |
106 | $(PROGRAM): $(OBJECTS) $(LIBS) |
115 | $(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(PROGRAM).map |
107 | $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(PROGRAM).map |
116 | 108 | ||
117 | # Everything else is a phony target |
109 | # Everything else is a phony target |
118 | .PHONY: all clean distclean depend disasm |
110 | .PHONY: all clean distclean depend disasm |
119 | 111 | ||
120 | all: $(PROGRAM) disasm |
112 | all: $(PROGRAM) disasm |