# Makefile for bin2hex # OS: UNIX (Linux, Solaris) # OS: MSDOS (Borland C 3.1) CC = gcc CCFLAGS = -DUNIX -I../include -ansi -pedantic -O \ -Wall -Wshadow -Wlarger-than-32768 -Wpointer-arith -Wcast-align \ -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations $(XCFLAGS) all: bin2hex bin2hex: bin2hex.c $(CC) -o bin2hex bin2hex.c $(CCFLAGS) clean: rm bin2hex bin2hex.c% bin2hex-makefile% veryclean vclean: clean #### MSDOS targets #### # does not have conditional macro assignment, hahahaha... CCmsdos = bcc CFLAGSmsdos = -DMSDOS -I..\include -3 -A -k -mc -N -P-.C -r -y -Y- $(XCFLAGS) LDmsdos = $(CCmsdos) $(CFLAGSmsdos) .c.obj: $(CCmsdos) $(CFLAGSmsdos) -c {$< } msdos: bin2hex.exe bin2hex.exe: bin2hex.c $(LDmsdos) bin2hex.c msdosclean: del *.obj del bin2hex.exe del bin2hex.sym del bin2hex.map del tc0000.swp