openblt

a hobby OS from the late 90s
git clone http://frotz.net/git/openblt.git
Log | Files | Refs | LICENSE

make.conf (2488B)


      1 # Target host for "make run"
      2 #
      3 #IP = 10.0.0.5
      4 #IP = 128.174.252.78
      5 #IP = 10.113.194.70
      6 IP = 10.0.0.43
      7 
      8 # List of .ini files to pass to bootmaker
      9 #
     10 INIFILES := boot/openblt.ini boot/misc.ini boot/window.ini boot/fs.ini 
     11 # LOCALINIFILES := 
     12 
     13 ##############################################################################
     14 #                                KERNEL OPTIONS
     15 ##############################################################################
     16 # Debug options for monochrome display or serial io
     17 #
     18 #VIDMODE = -DMONO
     19 #SERIAL += -DSERIAL
     20 #SERIAL += -DSERIAL_DEBUG
     21 #SERIAL += -DDPRINTF
     22 #SERIAL += -DPORT_E9
     23 
     24 # Uncomment at most one machine type.  The default will be equivalent to I386.
     25 # A sensible choice will get you better performance.  Kernels are not
     26 # guaranteed to run on a lower processor than that which they were built for.
     27 # Your choice does not affect your ability to do SMP.
     28 #
     29 CPU = -DI386
     30 #CPU = -DI486
     31 #CPU = -DI586
     32 #CPU = -DI686
     33 
     34 # Uncomment this to build an SMP-capable kernel.  SMP kernels will still run
     35 # on UP machines.
     36 #
     37 #SMP = -D__SMP__
     38 
     39 ##############################################################################
     40 #                              END KERNEL OPTIONS
     41 ##############################################################################
     42 
     43 # Cross-compilation prefix / postfix stuff
     44 #
     45 #PREFIX = i586-beoself-
     46 #POSTFIX = 386
     47 
     48 # Linker arg stuff
     49 #
     50 ENTRY_KERNEL = 80000074
     51 ENTRY_USER = 01074    
     52 ENTRY_BOOTSTRAP = 101074
     53 ENTRY_ROM = 90074
     54 
     55 CC = $(PREFIX)gcc$(POSTFIX)
     56 C++ = $(PREFIX)g++$(POSTFIX)
     57 LD = $(PREFIX)ld$(POSTFIX)
     58 NM = $(PREFIX)nm$(POSTFIX)
     59 ST = $(PREFIX)strip$(POSTFIX)
     60 AR = $(PREFIX)ar$(POSTFIX)
     61 
     62 OPTIMIZER := -O2
     63 WARNINGS := -Wall
     64 
     65 # Optionally strip all binaries (save some space)
     66 # .debug versions of binaries will be also made in this case
     67 #
     68 STRIP := false
     69 
     70 define SRCS_TO_OBJS
     71     $(addsuffix .o, $(foreach file, $(SRCS), $(basename $(notdir $(file)))))
     72 endef
     73 
     74 
     75 # Adjust our paths based on the BLTHOME variable
     76 # 
     77 #
     78 ENTRY		:= $(ENTRY_USER)
     79 INCLUDES	:= -I$(BLTHOME)include
     80 LIBBASE		:= -L$(BLTHOME)lib/obj
     81 CRT0		:= $(BLTHOME)lib/crt0.o
     82 
     83 
     84 CFLAGS := -nostdinc -fno-builtin $(WARNINGS) -Wno-multichar $(OPTIMIZER) $(INCLUDES) $(VIDMODE) $(CPU)
     85 
     86 CXXFLAGS := -nostdinc -fno-rtti -fno-exceptions -fno-builtin $(WARNINGS) -Wno-multichar $(OPTIMIZER) $(INCLUDES) $(VIDMODE) $(CPU)
     87 
     88 # Prevent rule confusion...
     89 #
     90 
     91 default: all
     92 
     93 # Used to insure BLTHOME is actually set
     94 #
     95 check_path:
     96 ifeq ($(BLTHOME),)
     97 	@echo error: BLTHOME is not set
     98 	@/bin/false
     99 endif
    100