diff options
author | Attila Veghelyi <works@veghelyiattila.hu> | 2023-07-24 21:21:57 +0200 |
---|---|---|
committer | Attila Veghelyi <works@veghelyiattila.hu> | 2023-07-24 21:21:57 +0200 |
commit | e3f91f7f6e7c5ff44232f1dadb7f17166bd85fd2 (patch) | |
tree | 76502dce5b29b64d08de7dd005426b4fe56c1159 /Makefile_op | |
parent | 3677ef6a3d3f01f11d9b1511a0383ff166a068fa (diff) | |
download | OpenProgrammer-e3f91f7f6e7c5ff44232f1dadb7f17166bd85fd2.tar.gz OpenProgrammer-e3f91f7f6e7c5ff44232f1dadb7f17166bd85fd2.zip |
Remove deprecated function call
Diffstat (limited to 'Makefile_op')
-rw-r--r-- | Makefile_op | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/Makefile_op b/Makefile_op index 2593383..6d34e67 100644 --- a/Makefile_op +++ b/Makefile_op @@ -16,34 +16,33 @@ OBJECTS = op.o \ I2CSPI.o \ strings.o -UNAME := $(shell uname) -ifneq (, $(findstring _NT-, $(UNAME))) - OPFLAG = -else - OPFLAG = -lrt -endif +LDFLAG = -lrt all: op op : $(OBJECTS) - $(CC) $(CFLAGS) $(OBJECTS) -o op $(OPFLAG) - rm $(OBJECTS) + @echo "\t LD $@" + @$(CC) $(OBJECTS) -o op $(LDFLAG) + @rm $(OBJECTS) %.o : %.c - $(CC) $(CFLAGS) -c $< + @echo "\t CC $@" + @$(CC) $(CFLAGS) -c $< clean: - rm -f op $(OBJECTS) + @echo "\t CLEAN ALL" + @rm -f op $(OBJECTS) prefix := /usr/local install: op - test -d $(prefix) || mkdir $(prefix) - test -d $(prefix)/bin || mkdir $(prefix)/bin - install -m 0755 op $(prefix)/bin; + @echo "\t Installing op" + @test -d $(prefix) || mkdir $(prefix) + @test -d $(prefix)/bin || mkdir $(prefix)/bin + @install -m 0755 op $(prefix)/bin; package: - @echo "Creating op_$(VERSION).tar.gz" + @echo "\t Creating op_$(VERSION).tar.gz" @mkdir op-$(VERSION) @cp *.c *.h gpl-2.0.txt Makefile readme utils/*.c op-$(VERSION) @tar -czf op_$(VERSION).tar.gz op-$(VERSION) |