"Fossies" - the Fresh Open Source Software Archive

Member "linux_logo-6.0/libsysinfo-0.3.0/Linux/Makefile" (8 May 2020, 2395 Bytes) of package /linux/misc/linux_logo-6.0.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 include ../Makefile.default
    2 
    3 ifneq (,$(findstring 86,$(ARCH)))
    4    ARCH := x86
    5 endif
    6 
    7 ifneq (,$(findstring arm,$(ARCH)))
    8    ARCH := arm
    9 endif
   10 
   11 ifneq (,$(findstring aarch64,$(ARCH)))
   12    ARCH := arm
   13 endif
   14 
   15 ifneq (,$(findstring sh,$(ARCH)))
   16    ARCH := sh
   17 endif
   18 
   19 ifneq (,$(findstring riscv,$(ARCH)))
   20    ARCH := riscv
   21 endif
   22 
   23 ifneq (,$(findstring s390,$(ARCH)))
   24    ARCH := s390
   25 endif
   26 
   27 ifneq (,$(findstring ppc,$(ARCH)))
   28    ARCH := ppc
   29 endif
   30 
   31 ifneq (,$(findstring mips,$(ARCH)))
   32    ARCH := mips
   33 endif
   34 
   35 
   36 all:	cpuinfo.o sysinfo_linux.o
   37 
   38 cpuinfo.o:	  $(ARCH)
   39 
   40 alpha:	cpuinfo_alpha.c
   41 	$(CROSS)$(CC) $(CFLAGS) -o cpuinfo.o -c cpuinfo_alpha.c
   42 
   43 arm:	cpuinfo_arm.c
   44 	$(CROSS)$(CC) $(CFLAGS) -o cpuinfo.o -c cpuinfo_arm.c
   45 
   46 avr32:	cpuinfo_avr32.c
   47 	$(CROSS)$(CC) $(CFLAGS) -o avr32.o -c cpuinfo_avr32.c
   48 
   49 cris:	cpuinfo_cris.c
   50 	$(CROSS)$(CC) $(CFLAGS) -o cpuinfo.o -c cpuinfo_cris.c
   51 
   52 frv:	cpuinfo_frv.c
   53 	$(CROSS)$(CC) $(CFLAGS) -o cpuinfo.o -c cpuinfo_frv.c
   54 
   55 ia64:	cpuinfo_ia64.c
   56 	$(CROSS)$(CC) $(CFLAGS) -o cpuinfo.o -c cpuinfo_ia64.c
   57 
   58 m32r:	cpuinfo_m32r.c
   59 	$(CROSS)$(CC) $(CFLAGS) -o cpuinfo.o -c cpuinfo_m32r.c
   60 
   61 m68k:	cpuinfo_m68k.c
   62 	$(CROSS)$(CC) $(CFLAGS) -o cpuinfo.o -c cpuinfo_m68k.c
   63 
   64 microblaze:	cpuinfo_microblaze.c
   65 	$(CROSS)$(CC) $(CFLAGS) -o cpuinfo.o -c cpuinfo_microblaze.c
   66 
   67 mips:	cpuinfo_mips.c
   68 	$(CROSS)$(CC) $(CFLAGS) -o cpuinfo.o -c cpuinfo_mips.c
   69 
   70 mips64:	cpuinfo_mips.c
   71 	$(CROSS)$(CC) $(CFLAGS) -o cpuinfo.o -c cpuinfo_mips.c
   72 
   73 parisc:	cpuinfo_parisc.c
   74 	$(CROSS)$(CC) $(CFLAGS) -o cpuinfo.o -c cpuinfo_parisc.c
   75 
   76 parisc64:	cpuinfo_parisc.c
   77 	$(CROSS)$(CC) $(CFLAGS) -o cpuinfo.o -c cpuinfo_parisc.c
   78 
   79 ppc:	cpuinfo_ppc.c
   80 	$(CROSS)$(CC) $(CFLAGS) -o cpuinfo.o -c cpuinfo_ppc.c
   81 
   82 ppc64:	cpuinfo_ppc.c
   83 	$(CROSS)$(CC) $(CFLAGS) -o cpuinfo.o -c cpuinfo_ppc.c
   84 
   85 riscv:	cpuinfo_riscv.c
   86 	$(CROSS)$(CC) $(CFLAGS) -o cpuinfo.o -c cpuinfo_riscv.c
   87 
   88 s390:	cpuinfo_s390.c
   89 	$(CROSS)$(CC) $(CFLAGS) -o cpuinfo.o -c cpuinfo_s390.c
   90 
   91 sh:	cpuinfo_sh3.c
   92 	$(CROSS)$(CC) $(CFLAGS) -o cpuinfo.o -c cpuinfo_sh3.c
   93 
   94 sparc:	cpuinfo_sparc.c
   95 	$(CROSS)$(CC) $(CFLAGS) -o cpuinfo.o -c cpuinfo_sparc.c
   96 
   97 sparc64:	cpuinfo_sparc.c
   98 	$(CROSS)$(CC) $(CFLAGS) -o cpuinfo.o -c cpuinfo_sparc.c
   99 
  100 vax:	cpuinfo_vax.c
  101 	$(CROSS)$(CC) $(CFLAGS) -o cpuinfo.o -c cpuinfo_vax.c
  102 
  103 x86:	cpuinfo_x86.c
  104 	$(CROSS)$(CC) $(CFLAGS) -o cpuinfo.o -c cpuinfo_x86.c
  105 
  106 sysinfo_linux.o:	sysinfo_linux.c
  107 	$(CROSS)$(CC) $(CFLAGS) -c sysinfo_linux.c
  108 
  109 clean:	
  110 	rm -f *~ *.o
  111