Mf-a6le 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Mf-a6le
  2. # Copyright 1984-2017 Cisco Systems, Inc.
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. m = a6le
  16. Cpu = X86_64
  17. mdclib = -lm -ldl -lncurses -lrt
  18. C = ${CC} ${CPPFLAGS} -m64 -msse2 -Wpointer-arith -Wall -Wextra -Werror -O2 ${CFLAGS}
  19. o = o
  20. mdsrc = i3le.c
  21. mdobj = i3le.o
  22. .SUFFIXES:
  23. .SUFFIXES: .c .o
  24. .c.o:
  25. $C -c -D${Cpu} -I${Include} -I../zlib $*.c
  26. include Mf-base
  27. ${Kernel}: ${kernelobj} ../zlib/libz.a
  28. ld -melf_x86_64 -r -X -o ${Kernel} ${kernelobj} ../zlib/libz.a
  29. ${Scheme}: ${Kernel} ${Main}
  30. $C -rdynamic -o ${Scheme} ${Kernel} ${Main} ${mdclib} ${LDFLAGS}
  31. ../zlib/configure.log:
  32. (cd ../zlib; CFLAGS=-m64 ./configure --64)