Blame view

logic_gate/Makefile 401 Bytes
Imanol-Mikel Barba Sabariego authored
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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