Makefile 401 Bytes
SYMLINKS = or nor xor xnor not and nand
TARGETS = logic_gate

.PHONY: all clean

all: $(TARGETS) symlinks

clean:
	rm -rf $(TARGETS) $(SYMLINKS)

symlinks: logic_gate
	ln -s logic_gate or
	ln -s logic_gate nor
	ln -s logic_gate xor
	ln -s logic_gate xnor
	ln -s logic_gate not
	ln -s logic_gate and
	ln -s logic_gate nand

logic_gate:
	gcc -I../common/ ../common/auxiliar.c logic_gate.c -o logic_gate