URL
https://opencores.org/ocsvn/usb_fpga_1_2/usb_fpga_1_2/trunk
Subversion Repositories usb_fpga_1_2
[/] [usb_fpga_1_2/] [trunk/] [bmp/] [Makefile] - Rev 2
Go to most recent revision | Compare with Previous | Blame | View Log
# Copyright (C) 1999-2009 Stefan Ziegenbalg## main targets:# all build bmp# install install applications# install2 install applications to ../bin# uninstall uninstall applications# resetconf reset configuration# clean clean everything but exe's# distclean clean everything########################## configuration section ###########################OS operating system (UNIX for unix like OS)#default: detected automatically#e.g. OS=UNIX#PCEXTRAFLAGS additional flags#e.g. PCEXTRAFLAGS=-XsPCEXTRAFLAGS=-gl#PREFIX base directory for installing#default: /usr/local for OS=UNIX and c:\usr else#e.g. PREFIX=/usr#BINDIR where to install bin's#default: $(PREFIX)/bin#e.g. BINDIR=/usr/bin################################# DO NOT CHANAGE THE FOLLOWING #################################ifndef OSifeq ($(WINDIR),)OS=UNIXelseOS=WINDOSendifendifSOURCES=src/bmp.pas src/bmpsys.pas src/textbuf.pasUNITS=-FusrcPCFLAGS:=-Scgm -O3rGp3 -FE. -Xs $(PCEXTRAFLAGS)INSTALLDIR=$(INSTALL) -dINSTALLEXE=$(INSTALL) -m 0755RM=rm -fECHO=echoifeq ($(OS),UNIX)CONFIGURESCRIPT=./configurePC:=$(shell $(CONFIGURESCRIPT) pc "$(PCFLAGS)")ifndef PC$(error Fatal: No correct compiler found or wrong flags)endifINSTALL=$(shell $(CONFIGURESCRIPT) install2)ifndef PREFIXPREFIX=/usr/localendifTARGETS=bmpDEFS=-DUNIXelsePC=ppc386INSTALL=installifndef PREFIXPREFIX=c:\usrendifTARGETS=bmp.exeDEFS=-DWINDOWSendififndef BINDIRBINDIR=$(PREFIX)/binendif.PHONY: all install uninstall resetconf clean distcleanall: bmp.madebmp.made: $(TARGETS)$(ECHO) > bmp.madebmp bmp.exe: $(SOURCES)$(PC) $(PCFLAGS) $(UNITS) src/bmp.pasinstall: $(TARGETS)$(INSTALLDIR) $(BINDIR)$(INSTALLEXE) $(TARGETS) $(BINDIR)install2: $(TARGETS)$(INSTALLEXE) $(TARGETS) ../binuninstall:- $(RM) $(addprefix $(BINDIR)/,$(TARGETS))resetconf:- $(RM) Makefile.conf- $(RM) conf_*clean:- $(RM) *.bak *.o *.ppu *.s */*.bak *.log *.a *~ */*~ *.out- $(RM) ppas.sh link.resdistclean: clean resetconf- $(RM) bmp bmp.exe bmp.made bmp.pas
Go to most recent revision | Compare with Previous | Blame | View Log
